Graph.has_node

Graph.has_node(key)[source]

Verify if a specific node is present in the network.

Parameters

key (hashable) – The identifier of the node.

Returns

bool – True or False.