add makefile for UndirectedGraph