Graph and Node Class