Changed NodeGraph to PointerGraph template. Added NodeVector.