Current graph data structure is developed for shortest path purpose. Refactor should allow using graph for wider amount of scenarios.