Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

TensorNetworks

Guides

  • TensorNetworks

Tech Notes

  • Building Tensor Networks
  • Contraction Paths and Execution
  • Matrix Product States
  • Tensor Networks Overview
  • Young Tableaux and Tensor Symmetries

Symbols

  • ActivateTensors
  • BinaryTensorNetwork
  • BinaryTensorNetworkQ
  • CanonicalPath
  • CanonicalPathQ
  • ContractIndices
  • ContractionTree
  • EinsteinSummation
  • GreedyContractionPath
  • HookFactor
  • HookLength
  • HookLengths
  • IndexedMultiply
  • InitializeTensorNetwork
  • MetricTensor
  • MetricTensorQ
  • MPSCanonicalForm
  • MPSCanonicalQ
  • MPSEntanglementEntropy
  • MPSNormalize
  • MPSNorm
  • MPSOverlap
  • MPSSchmidtValues
  • MPSTruncate
  • OptimalContractionPath
  • PartitionQ
  • PathIndexContractions
  • PathQ
  • PathToTreePath
  • RandomTensorNetwork
  • SparseTensorNetwork
  • TableauColumns
  • TableauDimension
  • TableauRows
  • TableauShape
  • TableauSize
  • TensorNetworkAdd
  • TensorNetworkContraction
  • TensorNetworkContractions
  • TensorNetworkContract
  • TensorNetworkData
  • TensorNetworkDelete
  • TensorNetworkFreeIndices
  • TensorNetworkGraphData
  • TensorNetworkGraphQ
  • TensorNetworkIndexDimensions
  • TensorNetworkIndexGraph
  • TensorNetworkIndices
  • TensorNetwork
  • TensorNetworkQ
  • TensorNetworkRemoveCycles
  • TensorNetworkReplaceIndices
  • TensorNetworkSize
  • TensorNetworkTensors
  • TensorNetworkToNetGraph
  • ToTensorNetworkGraph
  • TransposePartition
  • TreePathQ
  • TreePathToPath
  • YoungProject
  • YoungSymmetrize
  • YoungTableau
  • YoungTableauQ
Wolfram`TensorNetworks`
BinaryTensorNetworkQ
​
BinaryTensorNetworkQ
[tn]
yields
True
if every index of
tn
appears in at most two tensors, i.e. the network has no hyperedges, and
False
otherwise.
​
Details and Options
​
Examples  
(9)
Basic Examples  
(3)
A pairwise binary chain has only two-tensor indices, so the predicate is True:
In[1]:=
BinaryTensorNetworkQ[TensorNetwork[{{1,2},{2,3},{3,4}}]]
Out[1]=
True
​
When a single index is shared by three tensors, the network has a hyperedge and the predicate is False:
In[1]:=
BinaryTensorNetworkQ[TensorNetwork[{{1,2},{1,3},{1,4}}]]
Out[1]=
False
​
BinaryTensorNetwork inserts a spider tensor for every hyperedge, after which the predicate returns True:
In[1]:=
hyper=TensorNetwork[{{1,2},{1,3},{1,4}}];​​hyper["BinaryQ"]
In[2]:=
BinaryTensorNetworkQ[BinaryTensorNetwork[hyper]]
Out[2]=
False
Out[2]=
True
Scope  
(4)

Properties & Relations  
(2)

SeeAlso
BinaryTensorNetwork
 
▪
TensorNetwork
 
▪
TensorNetworkQ
 
▪
RandomTensorNetwork
 
▪
TensorNetworkContract
 
▪
AllTrue
 
▪
Counts
 
▪
GraphQ
TechNotes
▪
Building Tensor Networks
RelatedGuides
▪
TensorNetworks
""

© 2026 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com