WolframInstitute`Hypergraph`
HypergraphRule |
|
| |
Examples
(1)
Basic Examples
(1)
Make a hypergraph rule:
In[1]:=
HypergraphRule |
,
Out[1]=
Apply a rule to a hypergraph to get a list of associations with information about each possible rewriting:
In[2]:=
//
Out[2]=
Hypergraph
,MatchVertices{1,2,3},MatchEdges{{1,2,3}},MatchEdgePositions{{1}},NewVertices{x.7741},NewEdges{{3,x.7741}},DeletedVertices{},RuleVertexMap{11,22,33,4x.7741},Hypergraph
,MatchVertices{2,3,4},MatchEdges{{3,2,4}},MatchEdgePositions{{2}},NewVertices{x.7741},NewEdges{{4,x.7741}},DeletedVertices{},RuleVertexMap{12,23,34,4x.7741}
""