minimum and maximum path

Hi!
I have an oriented graph made with

1
2
3
4
5
6
7
8
9
  class myClass{
  public:
  myClass* left(){return a;}
  myClass* right(){return b;}
  protected:
  private:
     myClass* a;
     myClass* b;
}


I made a graph with this class and now i have to find min and max path.
I wanted to use BFS to find min path, but I don't understand how to do it with c++ or if there are implemented algorithm in library
Last edited on
You could search ...
https://coldfunction.com/mgen/p/3i
or more generally:
https://www.bing.com/search?q=graph+MIN+PATH+bfs+&pc=MOZI&form=MOZTSB

If you're still stuck, let us know.
Last edited on
Sorry, but I don't understand how to adapt the code to mine
Topic archived. No new replies allowed.