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`
Hypermatrix
​
Hypermatrix
[hg]
gives the hypermatrix of the hypergraph hg, a graded collection of adjacency arrays with one rank-
𝑘
array per group of arity-
𝑘
hyperedges.
​
​
Hypermatrix
[vertices,edges,symmetries]
gives the hypermatrix of the hypergraph with the given vertices, edges and per-edge symmetries.
​
Details and Options
▪
Hypermatrix
returns a
Hypermatrix
object, which displays as a summary box showing the dimensions of its component arrays;
HypermatrixQ
tests for a valid
Hypermatrix
object.
▪
Hyperedges are grouped by their arity and edge symmetry: each group of arity-
𝑘
hyperedges becomes a
SparseArray
of rank
𝑘
whose dimensions all equal the number of vertices
𝑛
, keyed by the pair of
𝑘
and the symmetry, given as a list of
Cycles
permutations.
▪
Array entries count hyperedge multiplicities, with indices referring to positions in
VertexList
[hg].
▪
Arity-0 hyperedges are stored as their count instead of an array.
▪
Unlike
AdjacencyTensor
, which embeds all hyperedges in a single padded tensor of the maximal rank, a hypermatrix keeps one unpadded array per arity and symmetry.
▪
In
Hypermatrix
[vertices,edges,symmetries]
, symmetries is a list of the same length as edges whose elements are lists of
Cycles
generators, one per edge; tagged edges edge -> tag are accepted, with the tag ignored.
▪
For a hypermatrix hm,
hm["Arrays"]
gives the list of component arrays,
hm["Dimensions"]
their dimensions, and
hm["Association"]
an association from the arity-symmetry keys to the arrays.
▪
In
TraditionalForm
, a hypermatrix displays its component arrays explicitly.
▪
HypermatrixGraph
reconstructs a hypergraph from its hypermatrix.
​
Examples  
(7)
Basic Examples  
(1)
Compute the hypermatrix of a hypergraph with two binary hyperedges and one ternary hyperedge:
In[1]:=
hm=
Hypermatrix

Hypergraph
[{{1,2},{2,3},{1,2,3}}]
Out[1]=
Hypermatrix
​

There is one component array per hyperedge arity:
In[2]:=
hm["Dimensions"]
Out[2]=
{{3,3},{3,3,3}}
The binary hyperedges are collected in a matrix, displayed with
MatrixForm
:
In[3]:=
MatrixForm@First@hm["Arrays"]
Out[3]=
0
1
0
0
0
1
0
0
0
Scope  
(4)

Properties & Relations  
(2)

SeeAlso
HypermatrixGraph
 
▪
AdjacencyTensor
 
▪
HypergraphIncidenceMatrix
 
▪
Hypergraph
RelatedGuides
▪
HypergraphFunctionality
""

© 2026 Wolfram. All rights reserved.

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