Use graph constructors in the tests