Add an edge to the graph and return it.
add_edge(
self,
source: Node,
target: Node,
data: Stringifiable | None = None,
conditional: bool = False
) -> Edge| Name | Type | Description |
|---|---|---|
source* | Node | The source node of the edge. |
target* | Node | The target node of the edge. |
data | Stringifiable | None | Default: NoneOptional data associated with the edge. |
conditional | bool | Default: FalseWhether the edge is conditional. |