Home | Trees | Indices | Help |
|
---|
|
object --+ | Vertex
Class representing a single vertex in a graph.
The vertex is referenced by its index, so if the underlying graph changes, the semantics of the vertex object might change as well (if the vertex indices are altered in the original graph).
The attributes of the vertex can be accessed by using the vertex as a hash:
>>> v["color"] = "red" >>> print v["color"] red
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
list |
|
||
list |
|
||
Inherited from |
|
|||
index Index of the vertex |
|||
Inherited from |
|
repr(x)
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Aug 16 21:30:46 2008 | http://epydoc.sourceforge.net |