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`
RandomHypergraph
​
RandomHypergraph
[n,{{
m
1
,
a
1
},{
m
2
,
a
2
},…}]
gives a pseudorandom hypergraph on n atoms with
𝑚
1
hyperedges of arity
𝑎
1
,
𝑚
2
hyperedges of arity
𝑎
2
, etc.
​
Details and Options
▪
RandomHypergraph
returns a
Hypergraph
object whose vertices are sampled from the integers 1 through n; atoms that end up in no hyperedge do not appear in the result.
▪
The signature
{{m1,a1},{m2,a2},...}
specifies
m1
hyperedges of arity
a1
,
m2
hyperedges of arity
a2
, etc, where the arity of a hyperedge is the number of vertices it connects.
▪
RandomHypergraph
delegates the sampling to the Wolfram Function Repository function
RandomHypergraph
; the first use in a session downloads it, which requires access to the Wolfram Cloud.
▪
Candidates are resampled until they satisfy the
"Simple"
and
"Connected"
constraints.
▪
Options of
Hypergraph
, such as
VertexLabels
, are applied to the result.
▪
Use
SeedRandom
to get a reproducible result.
▪
The following options can be given:
option
default
effect
"Simple"
True
resample until the hypergraph is simple (
True
) or non-simple (
False
);
All
accepts any hypergraph
"Connected"
All
resample until the hypergraph is connected (
True
) or disconnected (
False
);
All
accepts any hypergraph
​
Examples  
(7)
Basic Examples  
(1)
Generate a pseudorandom simple hypergraph on five atoms with three binary and one ternary hyperedge:
In[1]:=
SeedRandom[7];
RandomHypergraph
[5,{{3,2},{1,3}}]
Out[1]=
Scope  
(1)

Options  
(2)

Properties & Relations  
(2)

Possible Issues  
(1)

SeeAlso
Hypergraph
 
▪
RandomHypergraphRule
 
▪
EnumerateHypergraphs
 
▪
EnumerateOrderedHypergraphs
RelatedGuides
▪
HypergraphFunctionality
""

© 2026 Wolfram. All rights reserved.

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