At the moment whenever I am solving Dijkstra's algorithm between two points, I have to create the graph object again when I run it. I want to create a spring MVC application where that graph is loaded just once on startup as a bean.At the moment whenever I am solving Dijkstra's