1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Edge lowestWeightE1 = null;
Node wantedN1 = null;
for (Node n1: graph.getSelf().getNeighbors()) {
    for (Edge e1: n1.getEdges()) {
        if (!e1.getNeighbor(n1).equals(graph.getSelf())) {
            if (lowestWeightE1 == null 
                    || e1.getWeight() < 
                    lowestWeightE1.getWeight()) {
                lowestWeightE1 = e1;
                wantedN1 = n1;
            }
        }
    }
}
graph.removeEdge(graph.findEdge(graph.getSelf(), wantedN1));

Name:

T_J2a

Changed:

20.05.2016

Discussion: