-1

Is there a way in which I can build a GraphPath of one graph using just its list of vertices to create a path from another graph in SimpleDirectedWeightedGraph?

For example, lets say i do a .getVertexList() on a path from tempGraphand i wish to build a path from the mainGraph. How can this be achieved?

Criss Hills
  • 189
  • 1
  • 12
  • 1
    Please improve the clarity of your question. It is not clear what it is that you exactly need. Also include a [MWE](https://stackoverflow.com/help/minimal-reproducible-example) – Joris Kinable Mar 12 '21 at 17:28

1 Answers1

0

do you mean making marge mainGraph and tempGraph into one

In this case, add all vertices and edges from one graph to the other graph, then you could choose any vertex from both graphs to connect

Dharman
  • 30,962
  • 25
  • 85
  • 135
A Ny
  • 23
  • 5