FormDiagram.has_edge

FormDiagram.has_edge(u, v, directed=True)[source]

Verify if the network contains a specific edge.

Parameters
  • u (hashable) – The identifier of the first node of the edge.

  • v (hashable) – The identifier of the second node of the edge.

  • directed (bool, optional) – Take into account the direction of the edge. Default is True.

Returns

bool – True if the edge is present, False otherwise.