Basic Examples (5)

Symmetries:

h=({{, Hypergraph }})@{{1},{1,2},{1,3,4}}

EdgeSymmetry[h]

Hypergraph:

h1=({{, RandomHypergraph }})[{10,{{2,0},{3,1},{5,2},{4,3}}}]

h2=({{, RandomHypergraph }})[{10,{{2,0},{3,1},{5,2},{4,3}}}]

h1+h2

h1**h2//TraditionalForm

Hypergraph adjacency tensor:

hg=({{, CanonicalHypergraph }})@({{, RandomHypergraph }})[{10,{{2,0},{3,1},{5,2},{4,3}}}]

({{, AdjacencyTensor }})@%

({{, CanonicalHypergraph }})@({{, AdjacencyHypergraph }})[%]

IsomorphicHypergraphQ[%,%%%]

Hypergraph incidence matrix:

({{, CanonicalHypergraph }})@({{, RandomHypergraph }})[{10,{{2,0},{3,1},{5,2},{4,3}}}]

({{, HypergraphIncidenceMatrix }})@%

({{, CanonicalHypergraph }})@({{, IncidenceHypergraph }})[%]

IsomorphicHypergraphQ[%,%%%]

HyperMatrix:

({{, RandomHypergraph }})[{10,{{2,0},{3,1},{5,2},{4,3}}}]

({{, HyperMatrix }})@%

({{, CanonicalHypergraph }})@({{, HyperMatrixGraph }})[%]

IsomorphicHypergraphQ[%,%%%]