kinbaku.Graph.add_edge¶
- Graph.add_edge(source_key, target_key, attr=None, edge_type=0)[source]¶
Add a single edge with custom attributes to graph
- Parameters
source_key (str) – string key of the source node
target_key (str) – string key of the target node
attr (dict, optional) – not yet implemented. Defaults to None.
edge_type (int, optional) – integer identifier of the edge type. Defaults to 0.
- Returns
returns edge as an instance of Graph:edge_class
- Return type
edge_class