On this page
TraversalTree
symbolica.community.graph / Class
TraversalTree()
A graph-bound DFS or BFS traversal tree.
Member details
subgraph
Property · read-only#subgraph: Subgraph
No description is available for this member.
nodes
Property · read-only#nodes: list[Node]
No description is available for this member.
half_edges
Property · read-only#half_edges: list[HalfEdge]
No description is available for this member.
covers(subgraph: Subgraph) -> Subgraph
No description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|
Namesubgraph | TypeSubgraph | Default— | Description— |
|---|
parent(node: Node | int | str) -> Optional[Node]
Return the immediate parent, or None for the traversal root.
Parameters
| Name | Type | Default | Description |
|---|
Namenode | TypeNode | int | str | Default— | Description— |
|---|
children(node: Node | int | str) -> list[Node]
Return the immediate children in traversal discovery order.
Parameters
| Name | Type | Default | Description |
|---|
Namenode | TypeNode | int | str | Default— | Description— |
|---|
ancestors(node: Node | int | str) -> list[Node]
Return strict ancestors from the immediate parent through the root.
Parameters
| Name | Type | Default | Description |
|---|
Namenode | TypeNode | int | str | Default— | Description— |
|---|
fundamental_cycle(half_edge: _HalfEdgeTarget) -> Optional[Cycle]
Return the fundamental cycle closed by an internal edge, or None for a tree edge.
Parameters
| Name | Type | Default | Description |
|---|
Namehalf_edge | Type_HalfEdgeTarget | Default— | Description— |
|---|
View generated signature source: docs/api/python/linnet-graph.pyi:1452