Added node structs and Graph class.