Close
Close window
GraphTheory/IsOriented - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


Home : Support : Online Help : GraphTheory/IsOriented
[フレーム] [フレーム]

GraphTheory

IsOriented

test if graph is oriented

Calling Sequence

IsOriented(G)

Parameters

G

-

directed graph

Description

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.

Examples

>

withGraphTheory:

>

G1Digraph5,1,2,2,3,2,4,3,5

G1Graph 1: a directed graph with 5 vertices and 4 arcs

(1)
>

IsOrientedG1

true

(2)
>

G2Digraph5,1,2,2,3,2,4,3,5,4,2

G2Graph 2: a directed graph with 5 vertices and 5 arcs

(3)
>

IsOrientedG2

false

(4)
>

G3RandomGraphs:-RandomArborescence100

G3Graph 3: a directed graph with 100 vertices and 99 arcs

(5)
>

IsOrientedG3

true

(6)

Compatibility

The GraphTheory[IsOriented] command was introduced in Maple 2022.

For more information on Maple 2022 changes, see Updates in Maple 2022 .


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /