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`
HypergraphDraw
​
HypergraphDraw
[]
opens an interactive canvas for drawing a hypergraph.
​
​
HypergraphDraw
[hg]
opens the canvas starting from an initial hypergraph hg.
​
​
HypergraphDraw
[
Dynamic
[hg]]
opens a canvas that dynamically writes the drawn hypergraph to the symbol hg.
​
Details and Options
▪
HypergraphDraw
produces a dynamic widget; it requires a notebook front end and cannot be used in a headless kernel.
▪
The widget is an
Interpretation
: evaluating it, or pressing its
"Return"
button, yields the drawn
Hypergraph
object; the
"Print"
button prints the current hypergraph as a new input cell.
▪
In the form
HypergraphDraw
[hg]
, hg can also be anything the
Hypergraph
constructor accepts, such as a list of hyperedges.
▪
Clicking an empty spot on the canvas creates a new vertex and selects it; clicking a vertex or a hyperedge toggles its selection, and dragging moves it. Holding Option (Alt) while clicking adds vertices or selections without resetting the current selection, holding Shift while dragging pans the canvas, and Shift-clicking a selected element repaints it with the current color.
▪
Pressing the space bar (or
"e"
) creates a new hyperedge connecting the currently selected vertices; with no vertices selected it creates an empty hyperedge, drawn as a circle.
▪
Right-clicking opens a palette for renaming, relabeling and recoloring the clicked vertex or hyperedge, setting a hyperedge's symmetry (
"Unordered"
,
"Cyclic"
or
"Ordered"
), and copying or pasting hypergraphs through the clipboard.
▪
The opener at the bottom of the widget reveals additional controls: input fields for vertex names and labels and hyperedge labels, a symmetry selector for new hyperedges, and a color slider.
▪
Keyboard shortcuts act on the canvas under the mouse pointer:
key
action
space or
"e"
create a hyperedge from the selected vertices
backspace
delete the selection
"z"
/
"d"
undo / redo the last action
Escape or
"q"
reset the selection
"r"
reset the canvas to the initial hypergraph
"u"
update the returned hypergraph
▪
HypergraphDraw
accepts all
Hypergraph
options, which are applied to the resulting hypergraph, together with the following options:
option
default
effect
"InitialColor"
Automatic
initial color for new vertices and hyperedges
"VertexLabels"
{"A","B","C"}
choices offered in the vertex label popup menu
"EdgeLabels"
{"f","g","h"}
choices offered in the hyperedge label popup menu
"InterfaceColor"
LightDarkSwitched
[
Black
,
White
]
color of the interface elements drawn on the canvas
"HideReturn"
False
whether to hide the
"Return"
button
▪
The related function
HypergraphRuleDraw
opens two such canvases side by side for drawing the input and output of a
HypergraphRule
.
​
Examples  
(5)
Basic Examples  
(2)
Draw a hypergraph starting from a single ternary hyperedge; press the
"Return"
button to replace the widget with the resulting
Hypergraph
object:
In[1]:=
HypergraphDraw

Hypergraph
[{{1,2,3}}],ImageSize512
_________________________________________________________________________________________________________________
Start from an empty canvas; click to create vertices, then press the space bar to connect the selected vertices into a hyperedge:
In[1]:=
HypergraphDraw
[]
Scope  
(2)

Options  
(1)

SeeAlso
Hypergraph
 
▪
HypergraphRule
 
▪
SimpleHypergraphPlot
RelatedGuides
▪
HypergraphFunctionality
""

© 2026 Wolfram. All rights reserved.

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