class_docstr: Tracks nodes and edges of a directed graph and supports basic operations on them.
class_docstr_tok: ["Tracks","nodes","and","edges","of","a","directed","graph","and","supports","basic","operations","on","them","."]
docstr: Returns a unique node identifier. If the node has an id
  attribute (preferred), it's used. Otherwise, the hash() is returned.
docstr_tok: ["Returns","a","unique","node","identifier",".","If","the","node","has","an","id","attribute","(","preferred",")",",","it","'s","used",".","Otherwise",",","the","hash","(",")","is","returned","."]
code: def id(self, node):
      """Returns a unique node identifier. If the node has an id
      attribute (preferred), it's used. Otherwise, the hash() is returned.
      """
      return node.id if hasattr(node, "id") else hash(node)
  
imports: from __future__ import absolute_import, division, print_function
  import os
  import re
  from random import getrandbits
  import inspect
  import numpy
label_desc: Use image node_id 2 for calling the Graph obj's underlying member method code with example usage: obj.id(node) and returns: unknown