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`
OrderedHypergraphToGraph
​
OrderedHypergraphToGraph
[hg]
gives a
Graph
encoding of the hypergraph hg that distinguishes each hyperedge and preserves the order of vertices within it.
​
Details and Options
▪
The resulting graph's vertices are tagged
{"Vertex",
v
}
for each vertex v of hg, and
{"Hyperedge",
i
,
v
}
for each vertex v of the i-th hyperedge; edges chain a hyperedge's vertices, in the order given, from one
"Hyperedge"
node to the next and the last one to the corresponding
"Vertex"
node.
▪
Because each hyperedge gets its own
"Hyperedge"
nodes, two identical hyperedges remain distinguishable in the graph, unlike in
HypergraphToGraph
.
▪
OrderedHypergraphToGraph
uses the vertex order exactly as stored in
EdgeList
[hg], regardless of hg's
EdgeSymmetry
; it does not enumerate the symmetry group the way
HypergraphToGraph
does.
▪
The graph is reduced with
TransitiveReductionGraph
, so only the minimal chain of edges needed to encode each hyperedge's position order is kept.
▪
This encoding underlies the default
Method"Graph"
used by
CanonicalHypergraph
.
▪
Any options given are passed directly to
Graph
.
▪
OrderedHypergraphToGraph
[args]
also accepts anything
Hypergraph
[args]
accepts, such as a raw list of hyperedges.
​
Examples  
(6)
Basic Examples  
(1)
Convert a hypergraph to its ordered graph encoding:
In[1]:=
hg=
Hypergraph
[{{1,2,3},{3,4}}];​​
OrderedHypergraphToGraph
[hg]
Out[1]=
Its vertices distinguish the hypergraph's own vertices from per-hyperedge markers, one per vertex of each hyperedge:
In[2]:=
VertexList
OrderedHypergraphToGraph
[hg]
Out[2]=
{{Vertex,1},{Vertex,2},{Vertex,3},{Vertex,4},{Hyperedge,1,1},{Hyperedge,1,2},{Hyperedge,1,3},{Hyperedge,2,3},{Hyperedge,2,4}}
Scope  
(3)

Properties & Relations  
(2)

SeeAlso
HypergraphToGraph
 
▪
CanonicalHypergraph
 
▪
ToOrderedHypergraph
 
▪
Hypergraph
RelatedGuides
▪
HypergraphFunctionality
""

© 2026 Wolfram. All rights reserved.

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