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`
ToLabeledPatternEdges
​
ToLabeledPatternEdges
[hg]
gives the pattern form of the hyperedges of the
Hypergraph
hg, suitable for matching with
ResourceFunction["MultiReplace"]
.
​
Details and Options
▪
ToLabeledPatternEdges
[hg] starts from the same pattern
ToLabeledEdges
[hg,
True
]
builds, and additionally rewrites any hyperedge whose
"EdgeSymmetry"
is not
"Ordered"
(or
"Directed"
) so that its vertex pattern matches regardless of the order the vertices are listed in, using its edge symmetry's own permutation group.
▪
Optional second and third arguments vertexCondition and edgeCondition carry the same meaning as the corresponding arguments of
ToLabeledEdges
.
▪
This is the pattern
HypergraphRuleApply
feeds to
ResourceFunction["MultiReplace"]
when applying a rule's input side to a hypergraph (see
rule[hg]
on
HypergraphRule
); for a hyperedge whose symmetry is already
"Ordered"
, the result is identical to
ToLabeledEdges
[hg,
True
]
.
​
Examples  
(3)
Basic Examples  
(2)
For a hyperedge with the default
"Unordered"
symmetry, the pattern includes an
Alternatives
over the ways to permute its vertices:
In[1]:=
FreeQ
ToLabeledPatternEdges

Hypergraph
[{{1,2,3}}],Alternatives
Out[1]=
False
_________________________________________________________________________________________________________________
For an
"Ordered"
hyperedge, no such alternative arrangement is added:
In[1]:=
FreeQ
ToLabeledPatternEdges

Hypergraph
[{{1,2,3}},"EdgeSymmetry""Ordered"],Alternatives
Out[1]=
True
Scope  
(1)

SeeAlso
ToLabeledEdges
 
▪
ToPatternRules
 
▪
HypergraphRule
 
▪
EdgeSymmetry
RelatedGuides
▪
HypergraphFunctionality
""

© 2026 Wolfram. All rights reserved.

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