Open daneelsan opened 3 years ago
Hypergraph
Various designs questions:
Hyperedge
Hyperedges
"ordered" was added (needs to be discussed) because many functions in WFR made the distinction. See:
HypergraphPlot
RandomHypergraph
Create a random Hypergraph ("Ordered" by default):
"Ordered"
(*In[]:=*) {8, 4} // RandomHypergraph // Hypergraph
Create a "Cyclic" Hypergraph:
(*In[]:=*) Hypergraph[{{1, 1, 1}}, True]
Some accessors:
hg = Hypergraph[{{}, {}, {1, 2, 3}}]; In[]:= EdgeList[hg] Out[]= {{}, {}, {1, 2, 3}} In[]:= VertexList[hg] Out[]= {1, 2, 3} In[]:= HypergraphSymmetry[hg] Out[]= "Ordered"
Information
(*In[]:= *) Information[Hypergraph]
This change is
Changes
Hypergraph
object, accessors and upvalues.Comments
Various designs questions:
Hypergraph
object in a notebook? Interpretation boxes (e.g. SparseArrays) or Graph-like plots?~ Decided on using a summary box.Hyperedge
is private for now. Should this be exposed?~ Decided to not use the symbol yet, just a list.Hyperedges
? See https://github.com/maxitg/SetReplace/issues/494#issuecomment-720580460~ Decided to use "global" symmetries for now."ordered" was added (needs to be discussed) because many functions in WFR made the distinction. See:
ToDo
HypergraphPlot
Hypergraph
(e.g.RandomHypergraph
)Examples
Create a random
Hypergraph
("Ordered"
by default):Create a "Cyclic"
Hypergraph
:Some accessors:
Information
:This change is