reno.diagrams.ToFlowDiagramEdge#

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

Bases: DiagramEdge

Reference edge that connects to a flow.

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 = 2#

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'#
add_to_graphviz(g=None)#

Add this edge to the graphviz Digraph.

Handled separately in this class because the style should depend on the source component type.

Parameters:

g (Digraph)

Return type:

None

arrowsize: ClassVar[str] = '.5'#