Hyperedges are concatenated, not merged: a hyperedge present in more than one argument appears once for each occurrence, with multiplicity preserved.
▪
Vertex and edge annotations (styles, labels, coordinates, and other per-vertex or per-edge options) are merged across the arguments; when several arguments annotate the same vertex or edge, the first non-
None
annotation encountered wins.
Examples
(5)
Basic Examples
(3)
Take the union of two hypergraphs that share a vertex:
In[1]:=
EdgeList
HypergraphUnion
Hypergraph
[{{1,2}}],
Hypergraph
[{{2,3}}]
Out[1]=
{{1,2},{2,3}}
Its vertex list is the union of the two vertex lists: