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