Updated graph class; split node values from adjacency list