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

MixedGraphs

Guides

  • Mixed Graph Functions

Symbols

  • EulerizeGraph
  • EvenDegreeVertexList
  • EvenDegreeVertexQ
  • GeneralizedGraphData
  • GraphConvexHull
  • GraphicalDegreeSequenceQ
  • GraphInformation
  • MixedGraphDirectedArcs
  • MixedGraphToDigraph
  • MixedGraphUndirectedEdges
  • OddDegreeVertexList
  • OddDegreeVertexQ
  • OddNodes
  • RandomMixedGraph
  • RandomSymbolicMixedGraph
  • RandomSymbolicWeightedMixedGraph
  • RandomWeightedMixedGraph
  • TakeLargestGraphComponentBy
  • UndirectedGraphToMixedGraph
PeterBurbery`MixedGraphs`
RandomMixedGraph
​
RandomMixedGraph[{vertices,edges},threshold]
creates a random mixed graph with
vertices
vertices and
edges
edges made up of
threshold
directed arcs
​
​
RandomMixedGraph[{vertices,edges},threshold,length]
creates a list of random mixed graphs with
vertices
vertices and
edges
edges made up of
threshold
directed arcs of length
length
​
​
RandomMixedGraph[{vertices,edges},threshold,array]
creates a array of random mixed graphs with
vertices
vertices and
edges
edges made up of
threshold
directed arcs of dimensions
array
​
​
RandomMixedGraph[dist,threshold]
creates a random mixed graph with graph distribution
dist
made up of
threshold
directed arcs
​
​
RandomMixedGraph[dist,threshold,length]
creates a list of random mixed graphs with graph distribution
dist
made up of
threshold
directed arcs that has of length
length
​
​
RandomMixedGraph[dist,threshold,array]
creates a array of random mixed graphs with graph distribution
dist
made up of
threshold
directed arcs of dimensions
array
​
Details and Options

Examples  
(3)
Basic Examples  
(1)
Make a random mixed graph with 20 nodes and 48 edges with 0.30 of the edges directed:
In[1]:=
RandomMixedGraph
[{20,54},0.30]
Out[1]=
Construct a graph with 68% directed edges:
In[2]:=
RandomMixedGraph
[{20,54},0.68]
Out[2]=
Make a list of random mixed graphs:
In[3]:=
RandomMixedGraph
[{20,54},0.3,7]
Out[3]=

,
,
,
,
,
,

Make an array of mixed graphs:
In[4]:=
RandomMixedGraph
[{20,54},0.68,{3,7}]
Out[4]=

,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,

Create a mixed graph from a graph distribution.
In[5]:=
RandomMixedGraph
[BarabasiAlbertGraphDistribution[100,4],0.68]
Create a list of random mixed graphs with a graph distribution:
Create an array of mixed graphs from a graph distribution:
Generate a random spatial graph with 148 nodes and 0.687 directed edges:
Metadata

© 2025 Wolfram. All rights reserved.

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