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`
MixedGraphToDigraph
​
​
MixedGraphToDigraph[mixedgraph]
create a digraph from mixed graph
mixedgraph
by replacing undirected edges in
mixedgraph
with directed arcs
​
Examples  
(1)
Basic Examples  
(1)
Create a random mixed graph and make it into a digraph:
In[1]:=
mixedGraph=
RandomMixedGraph
[{20,54},0.68]
Out[1]=
In[2]:=
MixedGraphToDigraph
[mixedGraph]
Out[2]=
The function works with weighted mixed graphs.
In[3]:=
randomWeightedMixedGraphs=
RandomWeightedMixedGraph
[{20,54},0.68,RandomInteger[{1,7}]&]
Out[3]=
In[4]:=
MixedGraphToDigraph
[randomWeightedMixedGraphs]
Out[4]=
In[5]:=
WeightedGraphQ
MixedGraphToDigraph
[randomWeightedMixedGraphs]
Out[5]=
True
Create a digraph with vertex labels and a graph theme:
In[6]:=
randomGraph=
RandomWeightedMixedGraph
[BarabasiAlbertGraphDistribution[100,3],0.68,RandomInteger[{1,7}]&]
Out[6]=
In[7]:=
MixedGraphToDigraph
[randomGraph,VertexLabelsAutomatic,PlotTheme"LargeGraph"]
Out[7]=
RelatedGuides
▪
Mixed Graph Functions
""

© 2025 Wolfram. All rights reserved.

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