NetworkX

Previous topic

networkx.LabeledDiGraph.has_node

Next topic

networkx.LabeledDiGraph.has_edge

Quick search

networkx.LabeledDiGraph.__contains__

LabeledDiGraph.__contains__(n)

Return True if n is a node, False otherwise. Use “n in G”.

Examples

>>> G=nx.path_graph(4)
>>> print 1 in G
True