public static <V, E extends GEdge<V>> void printGraph(GDirectedGraph<V, E> g, PrintStream ps) {
		Set<V> sources = getSources(g);
		Set<V> printedSet = new HashSet<>();
		ps.println("=================================");
		for (V v : sources) {
			recursivePrint(g, v, printedSet, 0, ps);
			ps.println("---------------------------------");
		}
		ps.println("=================================");
	}
A method to debug the given graph by printing it.

@param g the graph to print
@param ps the output stream
Ghidra/Framework/Graph/src/main/java/ghidra/graph/GraphAlgorithms.java