def depgraph_to_dotsrc(dep_graph, show_cycles, nodot, reverse):
if show_cycles:<EOL><INDENT>dotsrc = cycles2dot(dep_graph, reverse=reverse)<EOL><DEDENT>elif not nodot:<EOL><INDENT>dotsrc = dep2dot(dep_graph, reverse=reverse)<EOL><DEDENT>else:<EOL><INDENT>dotsrc = None<EOL><DEDENT>return dotsrc<EOL>
Convert the dependency graph (DepGraph class) to dot source code.