graph building works
test method added