convert a set to an arraylist 06-04-2014d1750 ArrayList edges = new ArrayList(); edges.addAll(graph.edgeSet()); //info from http://javarevisited.blogspot.com/2012/01/convert-arraylist-to-set-java-example.html