catch FileNotFoundException
using UndirectedGraph represents Bipartite