public void searchForPath() {
		setDrawGraphInstance();
		if(nodeFromKDV == -1 || nodeToKDV == -1) {
			if(!pa.getMalformed()) {
				JOptionPane.showMessageDialog(null, "One of the addresses could not be found", "Warning Message", JOptionPane.WARNING_MESSAGE);
			}
			return;
		}

		edgesOnPath.clear();

		Iterable<MyEdge> path = dsp.calculatePath(nodeFromKDV-1, nodeToKDV-1);
		if(path != null) {
			for (MyEdge e : path) {
				edgesOnPath.push(e);
			}
			dg.setDirFromNode(mg.getNodeArray()[nodeFromKDV-1]);
			dg.setDirToNode(mg.getNodeArray()[nodeToKDV-1]);
			
			dg.repaint();
		}
		else
			JOptionPane.showMessageDialog(null, "No path could be found between the addresses", "Warning Message", JOptionPane.WARNING_MESSAGE);

		nodeFromKDV = -1;
		nodeToKDV = -1;
		pa.setMalformed(false);
	}