NetworkArtist

class compas_ghpython.artists.NetworkArtist(item, **kwargs)[source]

Bases: GHArtist, NetworkArtist

Artist for drawing network data structures.

Parameters
  • network (Network) – A COMPAS network.

  • **kwargs (dict, optional) – Additional keyword arguments. See GHArtist and NetworkArtist for more info.

Methods

draw

Draw the entire network with default color settings.

draw_edges

Draw a selection of edges.

draw_nodes

Draw a selection of nodes.

Inherited Methods

build

Build an artist corresponding to the item type.

build_as

Build an artist with the given type.

clear

Clear the nodes and the edges of the network.

clear_edges

Clear the edges of the network.

clear_nodes

Clear the nodes of the network.

draw_collection

Drawing method for drawing an entire collection of objects.

redraw

Redraw the view.

register

Register an artist type to a data type.