graph converter

I am not sure about where to get the shape and label..I have just put
points of suspension to highlight that part of code