views#
Classes
|
View over arcs (pairs of endpoints). |
|
View over all endpoints of the diagram. |
|
View over faces (regions) of a planar diagram. |
|
Node view filtered by node type. |
|
Mapping/set-like view over the diagram’s nodes. |
- class NodeView(nodes)#
Bases:
Mapping
,Set
Mapping/set-like view over the diagram’s nodes.
Keys are node identifiers (hashable), values are
Node
instances.Note
This is a view: it reflects the underlying diagram. Avoid mutating the diagram while iterating this view.
- Parameters:
nodes (dict[Hashable, Node])
- class EndpointView(nodes)#
Bases:
NodeView
View over all endpoints of the diagram.
- Parameters:
nodes (dict[Hashable, Node])
- class FaceView(nodes)#
Bases:
NodeView
View over faces (regions) of a planar diagram.
A face (region, area) is modeled as a sequence of endpoints. Given a face on the plane, its boundary is returned by traversing in CCW fashion, using the target (second) endpoint at each step.
- Parameters:
nodes (dict[Hashable, Node])