Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Test if a graph is oriented
ResourceFunction["OrientedGraphQ"][gr] tests whether a graph gr is oriented. |
There is a symmetric pair of directed edges between vertices 1 and 2 so this graph is not oriented:
| In[1]:= |
| Out[1]= |
Without one of those edges, it is:
| In[2]:= |
| Out[2]= |
This work is licensed under a Creative Commons Attribution 4.0 International License