GraphObject

class compas_ghpython.scene.GraphObject[source]

Bases: GHSceneObject, GraphObject

Scene object for drawing graph data structures.

Parameters:
graphcompas.datastructures.Graph

A COMPAS graph.

**kwargsdict, optional

Additional keyword arguments.

Methods

draw

Draw the entire graph with default color settings.

draw_edges

Draw a selection of edges.

draw_nodes

Draw a selection of nodes.

Inherited Methods

add

Add a child item to the scene object.

clear

Clear the nodes and the edges of the graph.

clear_edges

Clear the edges of the graph.

clear_nodes

Clear the nodes of the graph.