class documentation

class VertexSeq:

已知子类:igraph.VertexSeq

查看层次结构

顶点序列的低级表示。

不要直接使用它,请改用igraph.VertexSeq

方法 attribute_names 返回图的顶点属性名称列表
方法 find 仅供内部使用。
方法 get_attribute_values 返回列表中所有顶点的给定顶点属性的值。
方法 select 仅供内部使用。
方法 set_attribute_values 为所有顶点设置给定顶点属性的值
方法 _reindex_names 重新创建将顶点名称映射到ID的字典。
def attribute_names():

返回图顶点的属性名称列表

def find(condition):
overridden in igraph.VertexSeq

仅供内部使用。

def get_attribute_values(attrname):

返回列表中所有顶点的给定顶点属性的值。

列表中存储的值与顶点属性中存储的对象完全相同,这意味着在可变对象的情况下,修改列表元素确实会影响存储在顶点中的属性。在不可变对象的情况下,修改列表不会影响属性值。

参数
attrname属性的名称
def select(*args, **kwds):
overridden in igraph.VertexSeq

仅供内部使用。

def set_attribute_values(attrname, values):

为所有顶点设置给定顶点属性的值

参数
attrname属性的名称
values列表中的新属性值
def _reindex_names():

重新创建将顶点名称映射到ID的字典。

仅供内部使用。