Enhanced the typeclass Graph by several functions.
Implemented some of the required functions defined by tpyeclass Graph.