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

Hypergraph

Guides

  • Hypergraph Functionality

Tech Notes

  • Hypergraph Rewriting

Symbols

  • AdjacencyHypergraph
  • AdjacencyTensor
  • CanonicalHypergraph
  • CanonicalHypergraphRule
  • ConnectedHypergraphQ
  • CyclicEdge
  • EdgeListTagged
  • EdgeMultiplicity
  • EdgeSymmetry
  • EnumerateHypergraphRules
  • EnumerateHypergraphs
  • EnumerateOrderedHypergraphs
  • EnumerateWolframModelRules
  • HighlightRule
  • HyperedgeList
  • Hyperedge
  • Hyperedges
  • HyperedgesQ
  • Hypergraph3D
  • HypergraphArityReduce
  • HypergraphDraw
  • HypergraphEmbedding
  • HypergraphHadamardProduct
  • HypergraphIncidenceMatrix
  • HypergraphIncidence
  • HypergraphInsertionBracketDegree
  • HypergraphInsertionBracket
  • HypergraphInsertion
  • HypergraphLargeQ
  • Hypergraph
  • HypergraphQ
  • HypergraphRuleDraw
  • HypergraphRule
  • HypergraphRuleQ
  • HypergraphToGraph
  • HypergraphTransitionMatrix
  • HypergraphUnion
  • HypermatrixGraph
  • Hypermatrix
  • HypermatrixQ
  • IncidenceHypergraph
  • IsomorphicHypergraphQ
  • KoszulSign
  • LinkedHypergraph
  • OrderedHypergraphToGraph
  • RandomAllHypergraph
  • RandomConnectedHypergraph
  • RandomHypergraph
  • RandomHypergraphRule
  • SetHypergraphSummaryThresholds
  • SimpleHypergraph
  • SimpleHypergraphPlot3D
  • SimpleHypergraphPlot
  • SimpleHypergraphQ
  • ToLabeledEdges
  • ToLabeledPatternEdges
  • ToOrderedHypergraph
  • ToPatternRules
WolframInstitute`Hypergraph`
AdjacencyHypergraph
​
AdjacencyHypergraph
[tensor]
constructs the hypergraph whose adjacency tensor is tensor.
​
​
AdjacencyHypergraph
[vertices,tensor]
uses the given list of vertices for the tensor indices.
​
Details and Options
▪
tensor must be a cubical array of some rank
𝑟
whose common dimension is one more than the number of vertices; for other dimensions
AdjacencyHypergraph
stays unevaluated.
▪
An index value
𝑖
with
1≤𝑖≤𝑛
refers to the
𝑖
-th element of vertices; the extra index value
𝑛+1
is a padding index marking hyperedges of arity less than
𝑟
.
▪
A nonzero entry
𝑚
at index
{
𝑖
1
,…,
𝑖
𝑘
,𝑛+1,…,𝑛+1}
yields
𝑚
copies of the hyperedge listing the vertices at positions
𝑖
1
,…,
𝑖
𝑘
.
▪
AdjacencyHypergraph
[tensor]
uses
Range
[n]
as the vertices, where
𝑛+1
is the dimension of tensor.
▪
AdjacencyHypergraph
inverts
AdjacencyTensor
.
​
Examples  
(6)
Basic Examples  
(1)
Construct a hypergraph from a rank-3 adjacency tensor:
In[1]:=
hg=
AdjacencyHypergraph
[SparseArray[{{1,2,4}1,{2,3,4}1,{1,2,3}1},{4,4,4}]]
Out[1]=
The padding index 4 terminates the two binary hyperedges:
In[2]:=
EdgeList[hg]
Out[2]=
{{1,2},{1,2,3},{2,3}}
Scope  
(2)

Properties & Relations  
(1)

Possible Issues  
(2)

SeeAlso
AdjacencyTensor
 
▪
IncidenceHypergraph
 
▪
HypermatrixGraph
 
▪
Hypergraph
RelatedGuides
▪
HypergraphFunctionality
""

© 2026 Wolfram. All rights reserved.

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