Finish constructing a graph