PlotData#

class iqm.applications.graph_utils.PlotData(graph, pos, node_colors, edge_colors, edge_widths, labels, edge_labels, node_size)[source]#

Bases: object

Precomputed visualization information used for drawing the graph.

Attributes

graph

The graph to be drawn.

pos

Layout positions of the nodes.

node_colors

Colors for each node.

edge_colors

Colors for each edge.

edge_widths

Widths for each edge.

labels

Labels for nodes.

edge_labels

Labels for edges (possibly empty).

node_size

Scaled node size for plotting.

Methods

__delattr__(name)

Implement delattr(self, name).

__eq__(other)

Return self==value.

__hash__()

Return hash(self).

__repr__()

Return repr(self).

__setattr__(name, value)

Implement setattr(self, name, value).

Parameters:
graph: Graph#

The graph to be drawn.

pos: dict[Any, tuple[float, float]]#

Layout positions of the nodes.

node_colors: list[str]#

Colors for each node.

edge_colors: list[str]#

Colors for each edge.

edge_widths: list[float]#

Widths for each edge.

labels: dict[Any, str]#

Labels for nodes.

edge_labels: dict[tuple[Any, Any], str]#

Labels for edges (possibly empty).

node_size: int#

Scaled node size for plotting.