class Node that represents all nodes in a graph