Graph representation using the adjacency list form. See the book 'Introduction to Algorithms' by Cormen, Leiserson, and Rivest.
286287288289290291292293294295296
*/ private Graph addEdge(Graph graph, PrimaryRow row1, PrimaryRow row2, Object fk) { // delay creation of the graph if (graph == null) graph = new Graph(); row1.setDependent(true); row2.setDependent(true); graph.addNode(row1); graph.addNode(row2);
287288289290291292293294295296297