GraphTheory[Digraph]
|
Calling Sequence
|
|
Digraph(V)
Digraph(L)
Digraph(V, L)
Digraph(V, E, A, W)
|
|
Parameters
|
|
V
|
-
|
list of vertices or number of vertices
|
E
|
-
|
set of arcs
|
L
|
-
|
Array or list of sets of vertices indicating vertex neighbors
|
A
|
-
|
adjacency Matrix (edge weights)
|
W
|
-
|
one of weighted or unweighted, or an equation weighted=true or false (optional)
|
|
|
|
|
Description
|
|
•
|
The Digraph command creates a digraph (directed graph) with the given parameters. The input parameters may appear in any order; however, they must be compatible.
|
•
|
A detailed description of the meaning of each parameter may be found in the Graph help page.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
>
|
|
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
>
|
|
>
|
|
| (6) |
>
|
|
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
>
|
|
| (9) |
>
|
|
| (10) |
|
|
Download Help Document
Was this information helpful?