FormNetwork.has_edge

FormNetwork.has_edge(u, v, directed=True)

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.