public static GeneralPath createGeneralPathFromEdges(Collection<Edge2D> edges) {
ArrayList<Point2D> nodes = new ArrayList<Point2D>(edges.size());
for (Iterator it = edges.iterator(); it.hasNext();) {
Edge2D edge = (Edge2D)it.next();
nodes.add(edge.getNode1());
}
return createGeneralPathFromNodes(nodes);
}