@Override
    public void mousePressed(MouseEvent e) {
        int x = e.getX();
        int y = e.getY();
        Vertex v = FindNearestVertex.at(GraphInterface.getGraph(), x, y);
        if (v != null) {
            AlgorithmInterface.startAlgorithm(v);
        }
    }