Hypergraph head symbol #494
Labels
feature
New functionality, or change in existing functionality
utilities
Has to do with utility functions such as WolframModelRuleData, HypergraphUnifications, etc.
wolfram language
Requires Wolfram Language implementation
The problem
Have a
Hypergraph
symbol analogous toGraph
, which will convertHypergraph[{hyperedges... }]
to a (hopefully) optimized standard form. This will make easier the addition of new functions for working with hypergraphs as we could overload WL symbol (e.g.VertexList
,EdgeAdd
, etc.). Also, the head would allows as to make use ofMakeBoxes
to represent the hypergraph usingHypergraphPlot
.Possible solution
Proposed functionality:
Comment
Should the hyperedges be of the form
Hyperedge[{x, x, y, z}]
instead ofHyperedge[x, x, y, z]
? The idea was to specify directedness as a second argument, i.e.Hyperedge[..., "Directed" | "Undirected"]
.Additional context
The symbol should probably optimize when the hypergraph is solely composed of integer, i.e. by using
PackedArray
's.The text was updated successfully, but these errors were encountered: