def build_graph(self, intermediate=False, formatter=None):
    graph = DependencyGraph(formatter=(formatter or GraphFormatter(root=self.id, shape='oval')))
    for (parent, node) in self.iterdeps(intermediate=intermediate):
        graph.add_arc(node)
        if parent:
            graph.add_edge(parent, node)
    return graph
def build_graph(self, intermediate=False, formatter=None):
    graph = DependencyGraph(formatter=(formatter or GraphFormatter(root=self.id, shape='oval')))
    for (parent, node) in self.iterdeps(intermediate=intermediate):
        graph.add_arc(node)
        if parent:
            graph.add_edge(parent, node)
    return graph