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`
HighlightRule
​
HighlightRule
[rule,hg]
gives a list of graphics highlighting every way the
HypergraphRule
rule matches the hypergraph hg, together with the result of each rewrite.
​
​
HighlightRule
[matches,hg]
gives graphics for an explicit list of match associations, as returned by
rule[hg]
.
​
Details and Options
▪
HighlightRule
returns one
Graphics
per match, showing hg with the matched vertices and hyperedges highlighted, an arrow, and the rewritten hypergraph with the newly created vertices and hyperedges highlighted.
▪
Applying a
HypergraphRule
to a hypergraph as
rule[hg]
returns a list of
Association
objects, one per match, whose keys include
"Hypergraph"
(the rewrite result),
"MatchVertices"
,
"MatchEdges"
,
"MatchEdgePositions"
,
"NewVertices"
,
"NewEdges"
and
"DeletedVertices"
;
HighlightRule
accepts such a list in place of the rule.
▪
Rule-application options such as
"CanonicalizeMethod"
and
"BindingsMethod"
are forwarded to
rule[hg]
, and plot options are forwarded to
SimpleHypergraphPlot
.
option
default
effect
"HighlightLeftVertexStyle"
Directive
[
PointSize
[0.02],
Red
]
style of the matched vertices in the input hypergraph
"HighlightLeftEdgeStyle"
Directive
[
Thick
,
Red
,
EdgeForm
[
Directive
[
Red
,
Thick
]]]
style of the matched hyperedges in the input hypergraph
"HighlightRightVertexStyle"
Directive
[
PointSize
[0.02],
Red
]
style of the newly created vertices in the rewritten hypergraph
"HighlightRightEdgeStyle"
Directive
[
Thick
,
Red
,
EdgeForm
[
Directive
[
Red
,
Thick
]]]
style of the newly created hyperedges in the rewritten hypergraph
​
Examples  
(5)
Basic Examples  
(1)
Highlight the matches of a rewriting rule that attaches a new hyperedge, one graphic per match:
In[1]:=
HighlightRule

HypergraphRule
[{{1,2}},{{1,2},{2,3}}],
Hypergraph
[{{1,2}}]
Out[1]=

,

Scope  
(1)

Options  
(2)

Properties & Relations  
(1)

SeeAlso
HypergraphRule
 
▪
Hypergraph
 
▪
SimpleHypergraphPlot
 
▪
RandomHypergraphRule
RelatedGuides
▪
HypergraphFunctionality
""

© 2026 Wolfram. All rights reserved.

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