Network.has_edge
-
Network.
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 secondt node of the edge.
directed (bool, optional) – Take into accoun the direction of the edge. Default is
True
.
- Returns
bool – True if the edge is present, False otherwise.