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: Remove a node and its edges.
docstr_tok: ["Remove","a","node","and","its","edges","."]
code: def remove(self, nodes):
      """Remove a node and its edges."""
      nodes = nodes if isinstance(nodes, list) else [nodes]
      for node in nodes:
          k = self.id(node)
          self.edges = list(
              filter(lambda e: e[0] != k and e[1] != k, self.edges)
          )
          del self.nodes[k]
  
imports: from __future__ import absolute_import, division, print_function
  import os
  import re
  from random import getrandbits
  import inspect
  import numpy
  import html
label_desc: Use image node_id 10 for calling the Graph obj's underlying member method code with example usage: obj.remove(nodes) without return types