public void mouseClicked(MouseEvent e) {
    if (SwingUtilities.isRightMouseButton(e)) {
      resetPath();
      repaint();
      return;
    }
    for (int i = e.getX() - pRadius; i<e.getX()+pRadius; i++) {
      for (int j = e.getY() -pRadius; j<e.getY()+pRadius; j++) {
        Node temp = myGraph.nodeAt(i, j);
        if (temp != null) {
          if (fromNode == null) {
            fromNode = temp;
          }
          else if (toNode == null) {
            toNode= temp;
            if (myGraph.getEdges().length > 0) { // There is an MST
              graphPanel.path = myGraph.nodeConnectionHelper(null, fromNode, toNode);
              graphPanel.repaint();
              graphPanel.pathInfo();  // NOTE: Turn on path info here!
            }
          }
          else {  // start new pair
            fromNode = temp;
            toNode = null;
            graphPanel.path = null;
          }
          repaint();
          return;
        }
      }
    }
  }