public boolean existDijsktraNode(DijkstraNode node){//checks in the list of dijsktra node if the param is in it.
        for(int i=0;i<grafo.getAllLinks().getLength();i++){
            if(dijkstra_nodes.get(i).equals(node)){
                return true;
            }
        }
        return  false;
    }