java.lang.IllegalArgumentException: graph must contain the start vertex

GitHub | marius00 | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    KShortestPaths / graph must contain the start vertex

    GitHub | 4 years ago | marius00
    java.lang.IllegalArgumentException: graph must contain the start vertex
  2. 0

    jgrapht-users - "graph must contain the start vertex" when running KShortestPaths

    nabble.com | 11 months ago
    java.lang.IllegalArgumentException: graph must contain the start vertex

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      graph must contain the start vertex

      at org.jgrapht.traverse.CrossComponentIterator.<init>()
    2. JGraphT
      KShortestPaths.getPaths
      1. org.jgrapht.traverse.CrossComponentIterator.<init>(CrossComponentIterator.java:170)
      2. org.jgrapht.traverse.BreadthFirstIterator.<init>(BreadthFirstIterator.java:92)
      3. org.jgrapht.alg.ConnectivityInspector.connectedSetOf(ConnectivityInspector.java:142)
      4. org.jgrapht.alg.ConnectivityInspector.pathExists(ConnectivityInspector.java:208)
      5. org.jgrapht.alg.RankingPathElementList.isGuardVertexDisconnected(RankingPathElementList.java:347)
      6. org.jgrapht.alg.RankingPathElementList.isNotValidPath(RankingPathElementList.java:364)
      7. org.jgrapht.alg.RankingPathElementList.addPathElements(RankingPathElementList.java:203)
      8. org.jgrapht.alg.KShortestPathsIterator.tryToAddNewPaths(KShortestPathsIterator.java:361)
      9. org.jgrapht.alg.KShortestPathsIterator.updateOutgoingVertices(KShortestPathsIterator.java:398)
      10. org.jgrapht.alg.KShortestPathsIterator.next(KShortestPathsIterator.java:177)
      11. org.jgrapht.alg.KShortestPaths.getPaths(KShortestPaths.java:150)
      11 frames
    3. Unknown
      main.main
      1. main.main(main.java:46)
      1 frame