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`
RandomHypergraphRule
​
RandomHypergraphRule
[{{
m
1
,
a
1
},…}{{
k
1
,
b
1
},…}]
gives a pseudorandom hypergraph rewrite rule whose input has
𝑚
1
hyperedges of arity
𝑎
1
, etc, and whose output has
𝑘
1
hyperedges of arity
𝑏
1
, etc.
​
​
RandomHypergraphRule
[sig,n]
uses at most n distinct atoms.
​
Details and Options
▪
RandomHypergraphRule
returns a
HypergraphRule
object.
▪
The signature is a rule of two hyperedge specifications
{{m1,a1},{m2,a2},...}
, each specifying
m1
hyperedges of arity
a1
,
m2
hyperedges of arity
a2
, etc.
▪
RandomHypergraphRule
delegates the sampling to the Wolfram Function Repository function
RandomWolframModel
; the first use in a session downloads it, which requires access to the Wolfram Cloud.
▪
With no explicit atom count, at most the maximum number of atoms that a connected rule of the signature can have is used.
▪
RandomHypergraphRule
[sig,n,type]
additionally specifies a connectivity type (
Automatic
,
All
or
None
), as in
EnumerateHypergraphRules
.
▪
Additional options are forwarded to
HypergraphRule
.
▪
Use
SeedRandom
to get a reproducible result.
​
Examples  
(6)
Basic Examples  
(1)
Generate a pseudorandom rule taking two binary hyperedges to three binary hyperedges:
In[1]:=
SeedRandom[1234];
RandomHypergraphRule
[{{2,2}}{{3,2}}]
Out[1]=
Scope  
(2)

Properties & Relations  
(2)

Possible Issues  
(1)

SeeAlso
HypergraphRule
 
▪
EnumerateHypergraphRules
 
▪
RandomHypergraph
 
▪
HighlightRule
RelatedGuides
▪
HypergraphFunctionality
""

© 2026 Wolfram. All rights reserved.

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