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: Make up an ID for a sequence (list) of nodes.
  Note: `getrandbits()` is very uninformative as a "readable" ID. Here, we build a name
  such that when the mouse hovers over the drawn node in Jupyter, one can figure out
  which original nodes make up the sequence. This is actually quite useful.
docstr_tok: ["Make","up","an","ID","for","a","sequence","(","list",")","of","nodes",".","Note",":","`","getrandbits","(",")","`","is","very","uninformative","as","a","``","readable","''","ID",".","Here",",","we","build","a","name","such","that","when","the","mouse","hovers","over","the","drawn","node","in","Jupyter",",","one","can","figure","out","which","original","nodes","make","up","the","sequence",".","This","is","actually","quite","useful","."]
code: def sequence_id(self, sequence):
      """Make up an ID for a sequence (list) of nodes.
      Note: `getrandbits()` is very uninformative as a "readable" ID. Here, we build a name
      such that when the mouse hovers over the drawn node in Jupyter, one can figure out
      which original nodes make up the sequence. This is actually quite useful.
      """
      if self.meaningful_ids:
          # TODO: This might fail if the ID becomes too long
          return "><".join([node.id for node in sequence])
      else:
          return getrandbits(64)
  
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 13 for calling the Graph obj's underlying member method code with example usage: obj.sequence_id(sequence) and returns: str, getrandbits