GraphTheory[SetEdgeWeight]
GraphTheory[GetEdgeWeight]
|
Calling Sequence
|
|
SetEdgeWeight(G, e, w)
GetEdgeWeight(G, e)
|
|
Parameters
|
|
G
|
-
|
weighted graph
|
e
|
-
|
edge/arc
|
w
|
-
|
numeric; edge weight
|
|
|
|
|
Description
|
|
•
|
SetEdgeWeight is used to change the weight of an edge of a weighted graph. It returns the old weight of the edge.
|
•
|
GetEdgeWeight is used to get the weight of an edge of a weighted graph.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
|
|
Download Help Document
Was this information helpful?