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`
H
y
p
e
r
g
r
a
p
h
R
u
l
e
H
y
p
e
r
g
r
a
p
h
R
u
l
e
[
i
n
p
u
t
,
o
u
t
p
u
t
]
g
i
v
e
s
a
h
y
p
e
r
g
r
a
p
h
r
e
w
r
i
t
i
n
g
r
u
l
e
t
h
a
t
r
e
p
l
a
c
e
s
t
h
e
h
y
p
e
r
g
r
a
p
h
i
n
p
u
t
w
i
t
h
t
h
e
h
y
p
e
r
g
r
a
p
h
o
u
t
p
u
t
.
H
y
p
e
r
g
r
a
p
h
R
u
l
e
[
i
n
p
u
t
,
o
u
t
p
u
t
,
c
o
n
d
]
g
i
v
e
s
a
r
u
l
e
t
h
a
t
a
d
d
i
t
i
o
n
a
l
l
y
r
e
q
u
i
r
e
s
t
h
e
c
o
n
d
i
t
i
o
n
c
o
n
d
t
o
h
o
l
d
f
o
r
a
m
a
t
c
h
.
D
e
t
a
i
l
s
a
n
d
O
p
t
i
o
n
s
▪
H
y
p
e
r
g
r
a
p
h
R
u
l
e
[
i
n
p
u
t
,
o
u
t
p
u
t
]
coerces
input
and
output
to
H
y
p
e
r
g
r
a
p
h
and displays the rule as an
input
->
output
diagram.
▪
Applying the rule to a hypergraph as
r
u
l
e
[
h
g
]
returns a list of match records, one
A
s
s
o
c
i
a
t
i
o
n
per way the input side matches
hg
, with keys
"
H
y
p
e
r
g
r
a
p
h
"
,
"
M
a
t
c
h
V
e
r
t
i
c
e
s
"
,
"
M
a
t
c
h
E
d
g
e
s
"
,
"
M
a
t
c
h
E
d
g
e
P
o
s
i
t
i
o
n
s
"
,
"
N
e
w
V
e
r
t
i
c
e
s
"
,
"
N
e
w
E
d
g
e
s
"
,
"
D
e
l
e
t
e
d
V
e
r
t
i
c
e
s
"
,
"
R
u
l
e
V
e
r
t
e
x
M
a
p
"
,
"
B
i
n
d
i
n
g
s
"
and
"
E
d
g
e
A
r
i
t
i
e
s
"
.
▪
The
"
H
y
p
e
r
g
r
a
p
h
"
key holds the rewritten hypergraph; vertices created by the rewrite get fresh names not used elsewhere in the hypergraph.
▪
r
u
l
e
[
"
I
n
p
u
t
"
]
and
r
u
l
e
[
"
O
u
t
p
u
t
"
]
give the two sides as
H
y
p
e
r
g
r
a
p
h
objects;
r
u
l
e
[
"
C
o
n
d
i
t
i
o
n
"
]
gives the held condition,
H
o
l
d
[
T
r
u
e
]
when no condition was given.
▪
In
H
y
p
e
r
g
r
a
p
h
R
u
l
e
[
i
n
p
u
t
,
o
u
t
p
u
t
,
c
o
n
d
]
,
cond
is only checked for vertices that the input hyperedges label with a shared symbol through
H
y
p
e
r
g
r
a
p
h
's
V
e
r
t
e
x
L
a
b
e
l
s
option; a plain vertex position with no such label is unconstrained.
▪
Rule application takes options from
H
y
p
e
r
g
r
a
p
h
R
u
l
e
A
p
p
l
y
(see
O
p
t
i
o
n
s
[
H
y
p
e
r
g
r
a
p
h
R
u
l
e
]
for the full combined option list, which also includes every
H
y
p
e
r
g
r
a
p
h
construction option applied to both sides).
o
p
t
i
o
n
d
e
f
a
u
l
t
e
f
f
e
c
t
"
C
a
n
o
n
i
c
a
l
i
z
e
M
e
t
h
o
d
"
A
u
t
o
m
a
t
i
c
F
u
l
l
d
e
d
u
p
l
i
c
a
t
e
s
m
a
t
c
h
e
s
t
h
a
t
d
i
f
f
e
r
o
n
l
y
b
y
a
s
y
m
m
e
t
r
y
o
f
t
h
e
i
n
p
u
t
h
y
p
e
r
e
d
g
e
s
"
D
i
s
t
i
n
c
t
V
e
r
t
e
x
L
a
b
e
l
s
"
T
r
u
e
r
e
q
u
i
r
e
d
i
s
t
i
n
c
t
l
y
l
a
b
e
l
e
d
i
n
p
u
t
v
e
r
t
i
c
e
s
t
o
b
i
n
d
t
o
d
i
s
t
i
n
c
t
h
y
p
e
r
g
r
a
p
h
v
e
r
t
i
c
e
s
"
D
i
s
t
i
n
c
t
E
d
g
e
L
a
b
e
l
s
"
T
r
u
e
r
e
q
u
i
r
e
d
i
s
t
i
n
c
t
l
y
l
a
b
e
l
e
d
i
n
p
u
t
h
y
p
e
r
e
d
g
e
s
t
o
b
i
n
d
t
o
d
i
s
t
i
n
c
t
h
y
p
e
r
g
r
a
p
h
h
y
p
e
r
e
d
g
e
s
"
S
y
m
m
e
t
r
y
M
e
t
h
o
d
"
A
u
t
o
m
a
t
i
c
a
n
y
o
t
h
e
r
v
a
l
u
e
i
g
n
o
r
e
s
a
m
a
t
c
h
e
d
h
y
p
e
r
e
d
g
e
'
s
o
w
n
"
E
d
g
e
S
y
m
m
e
t
r
y
"
t
a
g
i
n
s
t
e
a
d
o
f
r
e
q
u
i
r
i
n
g
i
t
t
o
a
g
r
e
e
w
i
t
h
t
h
e
i
n
p
u
t
"
B
i
n
d
i
n
g
s
M
e
t
h
o
d
"
A
u
t
o
m
a
t
i
c
F
i
r
s
t
k
e
e
p
s
o
n
l
y
o
n
e
a
s
s
i
g
n
m
e
n
t
o
f
u
n
m
a
t
c
h
e
d
i
n
p
u
t
v
e
r
t
i
c
e
s
i
n
s
t
e
a
d
o
f
e
n
u
m
e
r
a
t
i
n
g
e
v
e
r
y
p
e
r
m
u
t
a
t
i
o
n
"
M
a
t
c
h
e
s
M
e
t
h
o
d
"
A
u
t
o
m
a
t
i
c
p
o
s
t
-
p
r
o
c
e
s
s
i
n
g
a
p
p
l
i
e
d
t
o
t
h
e
r
a
w
l
i
s
t
o
f
p
a
t
t
e
r
n
m
a
t
c
h
e
s
b
e
f
o
r
e
m
a
t
c
h
r
e
c
o
r
d
s
a
r
e
b
u
i
l
t
Examples
(
1
1
)
Basic Examples
(
1
)
Make a rule that attaches a new hyperedge between two matched vertices:
I
n
[
1
]
:
=
r
u
l
e
=
H
y
p
e
r
g
r
a
p
h
R
u
l
e
H
y
p
e
r
g
r
a
p
h
[
{
{
1
,
2
}
}
]
,
H
y
p
e
r
g
r
a
p
h
[
{
{
1
,
2
}
,
{
2
,
3
}
}
]
O
u
t
[
1
]
=
Applying the rule to a hypergraph gives one match record for every way the input side matches:
I
n
[
2
]
:
=
m
a
t
c
h
e
s
=
r
u
l
e
H
y
p
e
r
g
r
a
p
h
[
{
{
a
,
b
}
,
{
b
,
c
}
}
]
;
L
e
n
g
t
h
[
m
a
t
c
h
e
s
]
O
u
t
[
2
]
=
4
S
c
o
p
e
(
6
)
O
p
t
i
o
n
s
(
1
)
P
r
o
p
e
r
t
i
e
s
&
R
e
l
a
t
i
o
n
s
(
2
)
P
o
s
s
i
b
l
e
I
s
s
u
e
s
(
1
)
S
e
e
A
l
s
o
H
y
p
e
r
g
r
a
p
h
▪
H
i
g
h
l
i
g
h
t
R
u
l
e
▪
E
n
u
m
e
r
a
t
e
H
y
p
e
r
g
r
a
p
h
R
u
l
e
s
▪
R
a
n
d
o
m
H
y
p
e
r
g
r
a
p
h
R
u
l
e
▪
H
y
p
e
r
g
r
a
p
h
D
r
a
w
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
"
"