find a node with a specifric label using python api code example Example: networkx check if node exists G = nx.Graph() if node_name in G: # do something