Renamed functions and variables from node to vertex.