graph class and tests over it