VectorPropertyValue

VectorPropertyValue#

class graph_tool.VectorPropertyValue#

Bases: object

Value of a vector-valued vertex or edge property map.

This object behaves like the vector it refers to (e.g. Vector_double), and modifications to it are applied to the property map. The vector is looked up again in the property map at every access, so that this object remains valid when the storage of the property map is reallocated, e.g. when vertices or edges are added to the graph. A copy that is independent of the property map is obtained with the method copy().

Raises an exception This class cannot be instantiated from Python

Attributes

a

Shortcut to the get_array method as an attribute.

a[git]#

Shortcut to the get_array method as an attribute.