fixed issue #44
solution: added duplication detection in graph.addEdge()