NetworkObject.draw

NetworkObject.draw(nodes=None, edges=None, nodecolor=None, edgecolor=None)[source]

Draw the network using the chosen visualisation settings.

Parameters:
nodeslist[int], optional

A list of nodes to draw. Default is None, in which case all nodes are drawn.

edgeslist[tuple[int, int]], optional

A list of edges to draw. The default is None, in which case all edges are drawn.

nodecolorcompas.colors.Color | dict[int, compas.colors.Color], optional

The color of the nodes.

edgecolorcompas.colors.Color | dict[tuple[int, int], compas.colors.Color], optional

The color of the edges.

Returns:
list[System.Guid]

The GUIDs of the created Rhino objects.