kinbaku.Graph.has_edge

Graph.has_edge(source, target, edge_type=0)[source]

Returns True if (source, target[, edge_type]) exists

Parameters
  • source (str) – key of source node

  • target (str) – key of target node

  • edge_type (int, optional) – edge type to match. Defaults to 0.

Returns

True if edge exists, False otherwise

Return type

bool