MCPcopy Create free account
hub / github.com/Seogeurim/CS-study / Edge

Class Edge

contents/algorithm/code/BellmanFordTest.java:77–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 }
76
77 static class Edge {
78 private int from;
79 private int to;
80 private int weight;
81
82 private Edge(int from, int to, int weight) {
83 this.from = from;
84 this.to = to;
85 this.weight = weight;
86 }
87
88 @Override
89 public String toString() {
90 return from + " --(" + weight + ")--> " + to;
91 }
92 }
93}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected