parameters: (self)
return_statement: return other
docstring: Return a shallow copy of this graph.
docstring_summary: Return a shallow copy of this graph.
docstring_tokens: Return a shallow copy of this graph .
function: def copy(self):
  
          """Return a shallow copy of this graph."""
  
          other = DirectedGraph()
  
          other._vertices = set(self._vertices)
  
          other._forwards = {k: set(v) for k, v in self._forwards.items()}
  
          other._backwards = {k: set(v) for k, v in self._backwards.items()}
  
          return other
function_tokens: def copy ( self ) : other = DirectedGraph ( ) other . _vertices = set ( self . _vertices ) other . _forwards = { k : set ( v ) for k , v in self . _forwards . items ( ) } other . _backwards = { k : set ( v ) for k , v in self . _backwards . items ( ) } return other