Wolfram Language
Paclet Repository
Community-contributed installable additions to the Wolfram Language
Primary Navigation
Categories
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
Create a Paclet
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`
O
r
d
e
r
e
d
H
y
p
e
r
g
r
a
p
h
T
o
G
r
a
p
h
O
r
d
e
r
e
d
H
y
p
e
r
g
r
a
p
h
T
o
G
r
a
p
h
[
h
g
]
g
i
v
e
s
a
G
r
a
p
h
e
n
c
o
d
i
n
g
o
f
t
h
e
h
y
p
e
r
g
r
a
p
h
h
g
t
h
a
t
d
i
s
t
i
n
g
u
i
s
h
e
s
e
a
c
h
h
y
p
e
r
e
d
g
e
a
n
d
p
r
e
s
e
r
v
e
s
t
h
e
o
r
d
e
r
o
f
v
e
r
t
i
c
e
s
w
i
t
h
i
n
i
t
.
D
e
t
a
i
l
s
a
n
d
O
p
t
i
o
n
s
▪
The resulting graph's vertices are tagged
{
"
V
e
r
t
e
x
"
,
v
}
for each vertex
v
of
hg
, and
{
"
H
y
p
e
r
e
d
g
e
"
,
i
,
v
}
for each vertex
v
of the
i
-th hyperedge; edges chain a hyperedge's vertices, in the order given, from one
"
H
y
p
e
r
e
d
g
e
"
node to the next and the last one to the corresponding
"
V
e
r
t
e
x
"
node.
▪
Because each hyperedge gets its own
"
H
y
p
e
r
e
d
g
e
"
nodes, two identical hyperedges remain distinguishable in the graph, unlike in
H
y
p
e
r
g
r
a
p
h
T
o
G
r
a
p
h
.
▪
O
r
d
e
r
e
d
H
y
p
e
r
g
r
a
p
h
T
o
G
r
a
p
h
uses the vertex order exactly as stored in
E
d
g
e
L
i
s
t
[
hg
], regardless of
hg
's
E
d
g
e
S
y
m
m
e
t
r
y
; it does not enumerate the symmetry group the way
H
y
p
e
r
g
r
a
p
h
T
o
G
r
a
p
h
does.
▪
The graph is reduced with
T
r
a
n
s
i
t
i
v
e
R
e
d
u
c
t
i
o
n
G
r
a
p
h
, so only the minimal chain of edges needed to encode each hyperedge's position order is kept.
▪
This encoding underlies the default
M
e
t
h
o
d
"
G
r
a
p
h
"
used by
C
a
n
o
n
i
c
a
l
H
y
p
e
r
g
r
a
p
h
.
▪
Any options given are passed directly to
G
r
a
p
h
.
▪
O
r
d
e
r
e
d
H
y
p
e
r
g
r
a
p
h
T
o
G
r
a
p
h
[
a
r
g
s
]
also accepts anything
H
y
p
e
r
g
r
a
p
h
[
a
r
g
s
]
accepts, such as a raw list of hyperedges.
Examples
(
6
)
Basic Examples
(
1
)
Convert a hypergraph to its ordered graph encoding:
I
n
[
1
]
:
=
h
g
=
H
y
p
e
r
g
r
a
p
h
[
{
{
1
,
2
,
3
}
,
{
3
,
4
}
}
]
;
O
r
d
e
r
e
d
H
y
p
e
r
g
r
a
p
h
T
o
G
r
a
p
h
[
h
g
]
O
u
t
[
1
]
=
Its vertices distinguish the hypergraph's own vertices from per-hyperedge markers, one per vertex of each hyperedge:
I
n
[
2
]
:
=
V
e
r
t
e
x
L
i
s
t
O
r
d
e
r
e
d
H
y
p
e
r
g
r
a
p
h
T
o
G
r
a
p
h
[
h
g
]
O
u
t
[
2
]
=
{
{
V
e
r
t
e
x
,
1
}
,
{
V
e
r
t
e
x
,
2
}
,
{
V
e
r
t
e
x
,
3
}
,
{
V
e
r
t
e
x
,
4
}
,
{
H
y
p
e
r
e
d
g
e
,
1
,
1
}
,
{
H
y
p
e
r
e
d
g
e
,
1
,
2
}
,
{
H
y
p
e
r
e
d
g
e
,
1
,
3
}
,
{
H
y
p
e
r
e
d
g
e
,
2
,
3
}
,
{
H
y
p
e
r
e
d
g
e
,
2
,
4
}
}
S
c
o
p
e
(
3
)
P
r
o
p
e
r
t
i
e
s
&
R
e
l
a
t
i
o
n
s
(
2
)
S
e
e
A
l
s
o
H
y
p
e
r
g
r
a
p
h
T
o
G
r
a
p
h
▪
C
a
n
o
n
i
c
a
l
H
y
p
e
r
g
r
a
p
h
▪
T
o
O
r
d
e
r
e
d
H
y
p
e
r
g
r
a
p
h
▪
H
y
p
e
r
g
r
a
p
h
R
e
l
a
t
e
d
G
u
i
d
e
s
▪
H
y
p
e
r
g
r
a
p
h
F
u
n
c
t
i
o
n
a
l
i
t
y
"
"