package cs499blue.algorithms;

import cs499blue.models.Edge;
import cs499blue.models.Vertex;

/**
 * author: vwilson
 * date: 4/1/14
 */

public class Distance {

    //returns the distance from a to b
    public static Double distanceFrom(Vertex a, Vertex b) {
        throw new UnsupportedOperationException("Not Yet Implemented");
    }

    //returns the length of e
    public static Double lengthOf(Edge e) {
        throw new UnsupportedOperationException("Not Yet Implemented");
    }
}

@@ -267,77 +267,109 @@
     
-throw new UnsupportedOperationException(%22Not Yet Implemented%22
+%0A        return Math.sqrt(Math.pow((a.getX()-b.getX()),2) + Math.pow((a.getY() - b.getY()),2)
 );%0A    %7D
 %0A%0A  
@@ -364,16 +364,21 @@
 );%0A    %7D
+%0A    
 %0A%0A    //
@@ -457,69 +457,46 @@
     
-throw new UnsupportedOperationException(%22Not Yet Implemented%22
+return distanceFrom(e.getA(), e.getB()
 );%0A 

Update Distance.java