Exemplo n.º 1
0
 private bool ValidSelectedVertices()
 {
     if (SelectedC1 == null || SelectedC2 == null || SelectedC1.Equals(SelectedC2))
     {
         return(false);
     }
     if (Find().Any())
     {
         return(false);
     }
     return(true);
 }
Exemplo n.º 2
0
 private IEnumerable <Edge> Find()
 {
     return(Edges.Where(i => SelectedC1.Equals(i.Source) && SelectedC2.Equals(i.Target) || SelectedC1.Equals(i.Target) && SelectedC2.Equals(i.Source)));
 }