package pucrs.alpro3.graph;

public class DirectedGraphMatrixApp {
	public static void main(String[] args) {
		DirectedGraph g = new DirectedGraphMatrix();
		System.out.println(g);
		g.addVertice("POA");
		System.out.println(g);
		g.addVertice("SDU");
		System.out.println(g);
		g.addVertice("CWB");
		System.out.println(g);
		g.addEdge("POA", "CWB");
		System.out.println(g);
		g.addEdge("POA", "SDU");
		System.out.println(g);
		System.out.println(g.getSources());
	}
}

@@ -461,12 +461,53 @@
 es());%0A%09
-%7D
+%09System.out.println(g.getSinks());%0A%09%09%0A%09%7D%0A%09
 %0A%7D%0A

Teste manual para sumidouros (sinks)