add_edge(
self,
source: Node,
target: Node,
data: Stringifiable | None =| 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: False |
Add an edge to the graph and return it.
Whether the edge is conditional.