completed class Graph , no debug