1)Create table with columns node,distance from start,visited,previous node.
2) Set initial distances from start (0 for A and infinite for rest) for all nodes
-For all nodes
3)Find node with shortest distance from start that hasnt been visited
4)For all connected nodes, calculate distance from start
4i)
IF value is smaller than current one distance update it and set previous node to the current one(the one at 3rd step)
5)Mark that node(3rd step) as visited
