mermaid_relationship
mermaid_relationship ¶
MermaidRelationship — represents a relationship between two Mermaid nodes.
MermaidRelationship
dataclass
¶
MermaidRelationship(
from_node: MermaidNode,
to_node: MermaidNode,
type: str = "DEPENDS_ON",
)
Represents a relationship between two nodes in a Mermaid diagram.
to_string ¶
to_string(
use_alias: bool = False, indentation: int = 4
) -> str
Render the relationship as a Mermaid arrow with type label.
All relationships render as A -->|TYPE| B including DEPENDS_ON.
Source code in src/crew_dcs/integrations/graphs/mermaid/mermaid_relationship.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | |