reno.diagrams.ToMetricDiagramEdge#

class reno.diagrams.ToMetricDiagramEdge(source, target)#

Bases: DiagramEdge

Reference edge that represents usage in a metric.

Methods

__init__(source, target)

Create an edge instance that connects from the passed source node to the passed target node.

add_to_graphviz([g])

Add this edge to the graphviz Digraph.

configure_color(config)

Determine what color should be used for this edge given the configuration.

find_duplicate_edges()

Get all other edges between the same source and target.

mark_rendered()

Set rendered state of this edge (and all duplicate/similar edges) to True.

other(node)

Given one side of the edge, get the node at the other end.

should_render()

Determine if this edge should be rendered or not.

Attributes

PRIORITY

When two edges can be drawn between the same source and target, priority (based on type) is used to determine which edge is actually drawn.

arrowsize

default_color

style

weight

rendered

Flag to ensure an edge doesn't get double-rendered.

Parameters:
PRIORITY: int = 1#

When two edges can be drawn between the same source and target, priority (based on type) is used to determine which edge is actually drawn.

__annotations__ = {'PRIORITY': 'int', 'arrowsize': 'ClassVar[str]', 'default_color': 'ClassVar[dict[str, str]]', 'style': 'ClassVar[str]', 'weight': 'ClassVar[str]'}#
__module__ = 'reno.diagrams'#
arrowsize: ClassVar[str] = '.5'#
default_color: ClassVar[dict[str, str]] = {'dark': '#999999', 'light': '#444444'}#
style: ClassVar[str] = 'dotted'#