docs: public static Graph copyTo(Graph fromGraph, Graph toGraph) {
          AllEdgesIterator eIter = fromGraph.getAllEdges();
          while (eIter.next()) {
              int base = eIter.getBaseNode();
              int adj = eIter.getAdjNode();
              toGraph.edge(base, adj).copyPropertiesFrom(eIter);
          }
  
          NodeAccess fna = fromGraph.getNodeAccess();
          NodeAccess tna = toGraph.getNodeAccess();
          int nodes = fromGraph.getNodes();
          for (int node = 0; node < nodes; node++) {
              if (tna.is3D())
                  tna.setNode(node, fna.getLatitude(node), fna.getLongitude(node), fna.getElevation(node));
              else
                  tna.setNode(node, fna.getLatitude(node), fna.getLongitude(node));
          }
          return toGraph;
      }