Graph

class Graph

Data structure for SysML graphs.

Attributes and methods will be added as internal API stabilizes.

Members defined in Graph (6 members)

edges

R

Edges in this graph.

nodes

R

Nodes in this graph.

__getitem__

__init__

clear

Clear all nodes and edges.

roots

Root nodes (nodes without a parent).

Attributes

property edges: syside.experimental.viz.Edges

Edges in this graph.

property nodes: syside.experimental.viz.Nodes

Nodes in this graph.

Methods

__getitem__(arg: syside.experimental.viz.NodeID, /) syside.experimental.viz.Node
__getitem__(arg: syside.experimental.viz.EdgeID, /) syside.experimental.viz.Edge
__init__() None
clear() None

Clear all nodes and edges.

Note that node and edge ids will be reused in an unspecified order.

roots() list[syside.experimental.viz.Node]

Root nodes (nodes without a parent).

Used in