public void ReducePathDistance(IVertexDistanceMatrix distances, IVertex source, IVertex target, IVertex intermediate)
 {
     if (distances.Distance(source, target) == 0.0)
     {
         distances.SetDistance(source, target, Convert.ToDouble((distances.Distance(source, intermediate) != 0.0) && (distances.Distance(intermediate, target) != 0.0)));
     }
 }
 public void ReducePathDistance(
     IVertexDistanceMatrix distances,
     IVertex source,
     IVertex target,
     IVertex intermediate
     )
 {
     distances.SetDistance(source,target,
         distances.Distance(source,intermediate)
         + distances.Distance(intermediate,target)
         );
 }
 public void ReducePathDistance(
     IVertexDistanceMatrix distances,
     IVertex source,
     IVertex target,
     IVertex intermediate
     )
 {
     distances.SetDistance(source, target,
                           distances.Distance(source, intermediate)
                           + distances.Distance(intermediate, target)
                           );
 }
 public void ReducePathDistance(
     IVertexDistanceMatrix distances,
     IVertex source,
     IVertex target,
     IVertex intermediate
     )
 {
     if (distances.Distance(source, target) == 0)
     {
         distances.SetDistance(source, target,
                               Convert.ToDouble(
                                   (distances.Distance(source, intermediate) != 0) &&
                                   (distances.Distance(intermediate, target) != 0)
                                   )
                               );
     }
 }