changed the graph to a struct and a lot prettier
renamed the graph struct to make more sense