

def __contains__(self, n):
    "Return True if n is a node, False otherwise. Use the expression\n        'n in G'.\n\n        Examples\n        --------\n        >>> G = nx.Graph()   # or DiGraph, MultiGraph, MultiDiGraph, etc\n        >>> G.add_path([0,1,2,3])\n        >>> 1 in G\n        True\n        "
    try:
        return (self in self.node)
    except TypeError:
        return False

dataset/ETHPy150Open networkx/networkx/networkx/classes/tests/timingclasses.py TimingGraph.__contains__/VarMisuse@20/136 `n`->`self`