test(graphs.graph) Adds tests and example