moved graph class to topology directory