add code for building graph