GraphTheory[Vertices]
GraphTheory[Edges]
|
Calling Sequence
|
|
Vertices(G)
Edges(G)
Edges(G, weights)
Edges(G, weights=false)
|
|
Description
|
|
•
|
The Vertices(G) function returns a list of the vertex labels of G.
|
•
|
The Edges(G) function returns a set of the edges of G. The second argument is used to include or exclude edge weights from output.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
>
|
|
| (9) |
>
|
|
| (10) |
>
|
|
| (11) |
|
|
Download Help Document
Was this information helpful?