Graph.connected_edges

Graph.connected_edges(key)[source]

Return the edges connected to a node.

Parameters

key (hashable) – The identifier of the node.

Returns

list[tuple[hashable, hashable]] – The edges connected to the node.