add a test for graph.hpp

to ensure that duplicate edges are impossible