def depgraph_to_dotsrc ( dep_graph , show_cycles , nodot , reverse ) : if show_cycles : dotsrc = cycles2dot ( dep_graph , reverse = reverse ) elif not nodot : dotsrc = dep2dot ( dep_graph , reverse = reverse ) else : dotsrc = None return dotsrc
dot source eqivalent in python
Convert the dependency graph ( DepGraph class ) to dot source code .
def depgraph_to_dotsrc(dep_graph, show_cycles, nodot, reverse):
    """Convert the dependency graph (DepGraph class) to dot source code.
    """
    if show_cycles:
        dotsrc = cycles2dot(dep_graph, reverse=reverse)
    elif not nodot:
        dotsrc = dep2dot(dep_graph, reverse=reverse)
    else:
        dotsrc = None
    return dotsrc