Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

Hypergraph

Guides

  • Hypergraph Functionality

Tech Notes

  • Hypergraph Rewriting

Symbols

  • AdjacencyHypergraph
  • AdjacencyTensor
  • CanonicalHypergraph
  • CanonicalHypergraphRule
  • ConnectedHypergraphQ
  • CyclicEdge
  • EdgeListTagged
  • EdgeMultiplicity
  • EdgeSymmetry
  • EnumerateHypergraphRules
  • EnumerateHypergraphs
  • EnumerateOrderedHypergraphs
  • EnumerateWolframModelRules
  • HighlightRule
  • HyperedgeList
  • Hyperedge
  • Hyperedges
  • HyperedgesQ
  • Hypergraph3D
  • HypergraphArityReduce
  • HypergraphDraw
  • HypergraphEmbedding
  • HypergraphHadamardProduct
  • HypergraphIncidenceMatrix
  • HypergraphIncidence
  • HypergraphInsertionBracketDegree
  • HypergraphInsertionBracket
  • HypergraphInsertion
  • HypergraphLargeQ
  • Hypergraph
  • HypergraphQ
  • HypergraphRuleDraw
  • HypergraphRule
  • HypergraphRuleQ
  • HypergraphToGraph
  • HypergraphTransitionMatrix
  • HypergraphUnion
  • HypermatrixGraph
  • Hypermatrix
  • HypermatrixQ
  • IncidenceHypergraph
  • IsomorphicHypergraphQ
  • KoszulSign
  • LinkedHypergraph
  • OrderedHypergraphToGraph
  • RandomAllHypergraph
  • RandomConnectedHypergraph
  • RandomHypergraph
  • RandomHypergraphRule
  • SetHypergraphSummaryThresholds
  • SimpleHypergraph
  • SimpleHypergraphPlot3D
  • SimpleHypergraphPlot
  • SimpleHypergraphQ
  • ToLabeledEdges
  • ToLabeledPatternEdges
  • ToOrderedHypergraph
  • ToPatternRules
WolframInstitute`Hypergraph`
HypergraphToGraph
​
HypergraphToGraph
[hg]
gives a directed
Graph
on the vertices of the hypergraph hg, with an edge for every pair of vertices adjacent in some symmetric ordering of a hyperedge.
​
Details and Options
▪
For each hyperedge,
HypergraphToGraph
enumerates its full edge symmetry group (see
EdgeSymmetry
), permutes the hyperedge's vertex list by every group element, and adds a
DirectedEdge
between each pair of vertices adjacent in the permuted list.
▪
A hyperedge with
"Ordered"
symmetry (for instance a hyperedge given as a
DirectedEdge
) contributes edges only for its vertices exactly as listed; the default
"Unordered"
symmetry contributes an edge for every ordered pair of vertices in the hyperedge.
▪
Since a hyperedge can contribute the same directed edge more than once (through different symmetry-group elements), the resulting
Graph
can carry multi-edges.
▪
Hyperedges of arity 1 contribute no edges; vertices not covered by a hyperedge remain isolated in the graph.
▪
Any options given are passed directly to
Graph
.
▪
HypergraphToGraph
requires an actual
Hypergraph
object; it does not accept a raw edge-spec list.
​
Examples  
(8)
Basic Examples  
(2)
Convert a hypergraph of ordinary directed edges to a graph:
In[1]:=
hg=
Hypergraph
[{DirectedEdge[1,2],DirectedEdge[2,3],DirectedEdge[3,1]}];​​
HypergraphToGraph
[hg]
Out[1]=
_________________________________________________________________________________________________________________
By default hyperedges are
"Unordered"
, so a pair contributes both directions:
In[1]:=
EdgeList
HypergraphToGraph

Hypergraph
[{{1,2}}]
Out[1]=
{12,21}
Scope  
(3)

Properties & Relations  
(2)

Possible Issues  
(1)

SeeAlso
OrderedHypergraphToGraph
 
▪
EdgeSymmetry
 
▪
AdjacencyTensor
 
▪
Hypergraph
RelatedGuides
▪
HypergraphFunctionality
""

© 2026 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com