created over function in graphtest to make code more terse...possibly?