dynetworkx.ImpulseGraph.__contains__

ImpulseGraph.__contains__(n)

Return True if n is a node, False otherwise. Use: ‘n in G’.

Examples

>>> G = dnx.IntervalGraph()
>>> G.add_node(2)
>>> 2 in G
True