1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* IC 312 HW 10: Shortest path to Google
 * 
 * NOTE: This is entirely written for you, but you can add more
 * fields or methods if you want to for some reason.
 */
 
/** A single ping connection in a PingGraph. */
public class PingEdge {
  private String source;
  private String dest;
  private float latency;
  
  public PingEdge(String source, String dest, float latency) {
    this.source = source;
    this.dest = dest;
    this.latency = latency;
  }
 
  public String getSource() { return this.source; }
  public String getDest() { return this.dest; }
  public float getLatency() { return this.latency; }
}