Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Change an undirected graph into a mixed graph
ResourceFunction["UndirectedGraphToMixedGraph"][graph, frac] randomly replaces a fraction frac of graph's undirected edges with directed edges. |
Make a parametric Harary graph mixed:
In[1]:= |
Out[1]= |
Construct a circulant graph with 35% directed edges:
In[2]:= |
Out[2]= |
Generate a random spatial graph and take the largest connected component by edge count:
In[3]:= |
In[4]:= |
Make the graph mixed with 50% directed edges:
In[5]:= |
In[6]:= |
Create a mixed dodecahedral graph with about 50% directed edges:
In[7]:= |
Find a Hamiltonian cycle if it exists:
In[8]:= |
Out[8]= |
This work is licensed under a Creative Commons Attribution 4.0 International License