Graph.has_edge
- Graph.has_edge(edge, directed=True)[source]
Verify if the graph contains a specific edge.
- Parameters:
- edgetuple[hashable, hashable]
The identifier of the edge as a pair of node identifiers.
- directedbool, optional
If True, the direction of the edge is taken into account.
- Returns:
- bool
True if the edge is present, False otherwise.
See also