private DijkstraElement sigDefinitivo(List <DijkstraElement> VD) { return(( from DE in VD where !DE.getIsDefinitive() orderby DE.getWeigth() ascending select DE ).First()); }
private bool allDefinitives(List <DijkstraElement> VD) { return(VD.Count(DE => DE.getIsDefinitive()) == VD.Count); }