Graph Class and Node implemented