Package igraph :: Class Vertex
[hide private]
[frames] | no frames]

Class Vertex

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
Instance Methods [hide private]
 
__delitem__(x, y)
del x[y]
 
__getitem__(x, y)
x[y]
 
__len__(x)
len(x)
 
__repr__(x)
repr(x)
 
__setitem__(x, i, y)
x[i]=y
list
attribute_names()
Returns the list of vertex attribute names
list
attributes()
Returns a dict of attribute names and values for the vertex

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]
  index
Index of the vertex

Inherited from object: __class__

Method Details [hide private]

__repr__(x)
(Representation operator)

 

repr(x)

Overrides: object.__repr__