python-igraph API reference

List of all classes, functions and methods in python-igraph

class documentation

class VertexSeq:

Known subclasses: igraph.VertexSeq

View In Hierarchy

Low-level representation of a vertex sequence.

Don't use it directly, use igraph.VertexSeq instead.

Unknown Field: deffield
refReference
Method __new__ Create and return a new object. See help(type) for accurate signature.
Method attribute_names Returns the attribute name list of the graph's vertices
Method find For internal use only.
Method get_attribute_values Returns the value of a given vertex attribute for all vertices in a list.
Method select For internal use only.
Method set_attribute_values Sets the value of a given vertex attribute for all vertices
Method _reindex_names Re-creates the dictionary that maps vertex names to IDs.
def __new__(*args, **kwargs):

Create and return a new object. See help(type) for accurate signature.

def attribute_names():

Returns the attribute name list of the graph's vertices

def find(condition):
overridden in igraph.VertexSeq

For internal use only.

def get_attribute_values(attrname):

Returns the value of a given vertex attribute for all vertices in a list.

The values stored in the list are exactly the same objects that are stored in the vertex attribute, meaning that in the case of mutable objects, the modification of the list element does affect the attribute stored in the vertex. In the case of immutable objects, modification of the list does not affect the attribute values.

Parameters
attrnamethe name of the attribute
def select(*args, **kwds):
overridden in igraph.VertexSeq

For internal use only.

def set_attribute_values(attrname, values):

Sets the value of a given vertex attribute for all vertices

Parameters
attrnamethe name of the attribute
valuesthe new attribute values in a list
def _reindex_names():

Re-creates the dictionary that maps vertex names to IDs.

For internal use only.