Created function to dump the graph in HTML. Needs improvement