Implemented more efficient pre and post method and added toString for
Action
Added a lot of additional storage ways for the edges in a graph, improves
computation times for pre, post and any methods using them.