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

Method main

contents/algorithm/code/FloydWarshallTest.java:3–15  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

1public class FloydWarshallTest {
2
3 public static void main(String[] args) {
4 FloydWarshall fw = new FloydWarshall(5);
5 fw.setWeight(1, 3, 5);
6 fw.setWeight(1, 2, 7);
7 fw.setWeight(1, 4, -3);
8 fw.setWeight(3, 4, 3);
9 fw.setWeight(3, 5, 3);
10 fw.setWeight(4, 2, 3);
11 fw.setWeight(4, 5, 6);
12 fw.setWeight(5, 3, 2);
13
14 fw.getShortestDistance();
15 }
16}
17
18class FloydWarshall {

Callers

nothing calls this directly

Calls 2

setWeightMethod · 0.95
getShortestDistanceMethod · 0.95

Tested by

no test coverage detected