networks[vweight] - finds vertex weights in a graph
|
Calling Sequence
|
|
vweight(G)
vweight(v, G)
vweight(vlist, G)
|
|
Parameters
|
|
G
|
-
|
graph or network
|
v
|
-
|
vertex or list of vertices
|
vlist
|
-
|
vertex or list of vertices
|
|
|
|
|
Description
|
|
•
|
Given just the graph G the vertex weight table of the graph is returned. This is part of the internal data-structure of the graph and so changes to it affect the graph itself.
|
•
|
If a vertex is provided as the first argument then the weight of vlist is returned while if a list vlist of vertices is provided then a list of weights is returned.
|
•
|
Vertex weights are ordinarily 0 unless explicitly set to some other value by assignment to the weight table. They may be assigned any valid maple object.
|
•
|
This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[vweight](...).
|
|
|
Examples
|
|
Important: The networks package has been deprecated.Use the superseding package GraphTheory instead.
>
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
|
|
Download Help Document
Was this information helpful?