packages/vaex-core/vaex/expression.py
def _graphviz(self, dot=None):
        """Return a graphviz.Digraph object with a graph of the expression"""
        from graphviz import Graph, Digraph
        node = self._graph()
        dot = dot or Digraph(comment=self.expression)
        def walk(node):
            if isinstance(node, six.string_types):
                dot.node(node, node)
                return node, node
            else:
                node_repr, fname, fobj, deps = node
                node_id = node_repr
                dot.node(node_id, node_repr)
                for dep in deps:
                    dep_id, dep = walk(dep)
                    dot.edge(node_id, dep_id)
                return node_id, node
        walk(node)
        return dot
def _graphviz(self, dot=None):
        from graphviz import Graph, Digraph
        node = self._graph()
        dot = dot or Digraph(comment=self.expression)
        def walk(node):
            if isinstance(node, six.string_types):
                dot.node(node, node)
                return node, node
            else:
                node_repr, fname, fobj, deps = node
                node_id = node_repr
                dot.node(node_id, node_repr)
                for dep in deps:
                    dep_id, dep = walk(dep)
                    dot.edge(node_id, dep_id)
                return node_id, node
        walk(node)
        return dot
def _graphviz ( self , dot = None ) : from graphviz import Graph , Digraph node = self . _graph ( ) dot = dot or Digraph ( comment = self . expression ) def walk ( node ) : if isinstance ( node , six . string_types ) : dot . node ( node , node ) return node , node else : node_repr , fname , fobj , deps = node node_id = node_repr dot . node ( node_id , node_repr ) for dep in deps : dep_id , dep = walk ( dep ) dot . edge ( node_id , dep_id ) return node_id , node walk ( node ) return dot
Return a graphviz.Digraph object with a graph of the expression
Return a graphviz . Digraph object with a graph of the expression