edge_exist
Signature/Parameters
Check whether an edge is present in the graph (or a supplied edge list).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
edge
|
tuple[str, str] or tuple[tuple[str, str], tuple[str, str]] or set[str]
|
Edge specification to check for existence. The method canonicalizes the representation so that undirected and bidirected edges are insensitive to node order. |
required |
edges
|
list or None
|
Specific list of edges to search. When |
None
|
Returns:
| Type | Description |
|---|---|
bool
|
|
Examples: