HashMap<Vertex, BoostRef<Vertex,?>> vertexMapping = new HashMap<Vertex, BoostRef<Vertex,?>>();
for (Vertex vertex : graph.getVertices())
{
BoostRef<Vertex,?> newVertex = new BoostRef<Vertex,Object>(vertex, VERTEX, true);
vertexMapping.put(vertex, newVertex);
newGraph.addVertex(newVertex);
}
for (Edge edge : graph.getEdges())
{
BoostRef<Edge,?> newVertex = new BoostRef<Edge,Object>(edge, EDGE, true);