22232425262728293031
} } public static void connectChildToParents(GraphNode child, GraphNode... parents) { for ( GraphNode parent : parents ) { EdgeImpl e = new EdgeImpl(); e.setOutGraphNode(parent); e.setInGraphNode(child); } }
138139140141142143144145146147
return x; } public static void connectParentToChildren(GraphNode parent, GraphNode... children) { for ( GraphNode child : children ) { EdgeImpl e = new EdgeImpl(); e.setOutGraphNode(parent); e.setInGraphNode(child); } }