reno.diagrams.StockIODiagramEdge#
- class reno.diagrams.StockIODiagramEdge(source, target)#
Bases:
DiagramEdgeEdge between a stock and a inflow or outflow.
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
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.
default_colorrenderedFlag to ensure an edge doesn't get double-rendered.
- Parameters:
source (DiagramNode)
target (DiagramNode)
- PRIORITY: int = 5#
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] = None#
- configure_color(config)#
Determine what color should be used for this edge given the configuration.
- Parameters:
config (RenderConfig)
- Return type:
None
- style: ClassVar[str] = 'bold'#
- weight: ClassVar[str] = '50'#