__index__

Vertex.__index__()[source]

Vertex index.

Vertices can be used directly as list and array indices, i.e., one can write some_list[v] instead of the slightly longer some_list[v.index] expression.

Returns:

Vertex index.

Return type:

int