added check to prevent double processing of edges in undirected graphs.
Added small-graph.txt