parameters: (self, child_graph)
return_statement: return self.is_child_graph(child_graph._parent_graph)
docstring: Checks if this graph is an ancestor of `child_graph`.
docstring_summary: Checks if this graph is an ancestor of `child_graph`.
docstring_tokens: Checks if this graph is an ancestor of child_graph .
function: def is_child_graph(self, child_graph):
      """Checks if this graph is an ancestor of `child_graph`."""
      # pylint: disable=protected-access
      if not child_graph or not child_graph._parent_graph:
        return False
      if child_graph._parent_graph == self:
        return True
      return self.is_child_graph(child_graph._parent_graph)
function_tokens: def is_child_graph ( self , child_graph ) : # pylint: disable=protected-access if not child_graph or not child_graph . _parent_graph : return False if child_graph . _parent_graph == self : return True return self . is_child_graph ( child_graph . _parent_graph )