Bio.Pathway.Rep.图表模块

获取/设置图形表示的抽象。

class Bio.Pathway.Rep.Graph.Graph(nodes=())

基类:object

带有标记边的有向图抽象。

__init__(nodes=())

初始化新的Shape对象。

__eq__(g)

如果g等于此图,则返回true。

__repr__()

返回此图的唯一字符串表示形式。

__str__()

返回此图表的简洁字符串描述。

add_node(node)

向此图表添加一个节点。

add_edge(source, to, label=None)

给这个图形添加一条边。

child_edges(parent)

返回父节点的(child,label)对列表。

children(parent)

为家长返回唯一子女列表。

edges(label)

返回带有此标签的所有边的列表。

labels()

返回此图表中所有边缘标签的列表。

nodes()

返回此图中的节点列表。

parent_edges(child)

返回孩子的(父、标签)对列表。

parents(child)

返回子节点的唯一父节点列表。

remove_node(node)

删除节点和连接到它的所有边。

remove_edge(parent, child, label)

删除边缘(未实施)。

__firstlineno__ = 14
__hash__ = None
__static_attributes__ = ('_adjacency_list', '_edge_map', '_label_map')