GraphTheory[MakeDirected]
|
Calling Sequence
|
|
MakeDirected(G)
MakeDirected(G, M)
|
|
Parameters
|
|
G
|
-
|
undirected graph
|
M
|
-
|
(optional) Matrix
|
|
|
|
|
Description
|
|
•
|
The MakeDirected command returns a directed graph with vertices from G. For each edge in G, the arcs in both directions are in the new graph. If G is a weighted graph, then a matrix M may be included as part of the input; in such a case the arc weights are taken from the entries of M.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
>
|
|
>
|
|
>
|
|
| (2) |
|
|
Download Help Document
Was this information helpful?