js  test adds_vertices_if_graph_is_not_a_tree