Node and Graph implementations