Version of C++ Graph Theory Application with Weights Played Logically