GraphTheory
IsOriented
test if graph is oriented
Calling Sequence
Parameters
Description
Examples
Compatibility
IsOriented(G)
G
-
directed graph
IsOriented(G) returns true if G is a directed graph containing no symmtric pair of arcs. That is, for every pair of vertices u and v in G, at most one of the arcs [u,v] and [v,u] is in G.
Since a pair of symmetric arcs forms a directed cycle, every acyclic directed graph is oriented.
with⁡GraphTheory:
G1≔Digraph⁡5,1,2,2,3,2,4,3,5
G1≔Graph 1: a directed graph with 5 vertices and 4 arc(s)
IsOriented⁡G1
true
G2≔Digraph⁡5,1,2,2,3,2,4,3,5,4,2
G2≔Graph 2: a directed graph with 5 vertices and 5 arc(s)
IsOriented⁡G2
false
G3≔RandomGraphs:-RandomArborescence⁡100
G3≔Graph 3: a directed graph with 100 vertices and 99 arc(s)
IsOriented⁡G3
The GraphTheory[IsOriented] command was introduced in Maple 2022.
For more information on Maple 2022 changes, see Updates in Maple 2022.
See Also
IsAcyclic
IsDirected
Download Help Document