Utility to create graphs and find MST or Shortest Path between vertices over a canvas