Networkx Periksa apakah ada node

G = nx.Graph()
     
if node_name in G:
	# do something
Difficult Dormouse