GraphObject.draw_edges

GraphObject.draw_edges(edges=None, color=None, text=None)[source]

Draw the edges of the graph.

Parameters:
edgeslist[tuple[int, int]], optional

The edges to include in the drawing. Default is all edges.

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

The color of the edges, as either a single color to be applied to all edges, or a color dict, mapping specific edges to specific colors.

textdict[tuple[int, int]], optional

The text labels for the edges as a text dict, mapping specific edges to specific text labels.

Returns:
list

The identifiers of the objects representing the edges in the visualization context.