1
2
3
4
5
6
7
8
9
Edge highestWeightE0 = null; 
for (Edge e0: graph.getSelf().getEdges()) {
    if((highestWeightE0 == null 
            || e0.getWeight() > highestWeightE0.getWeight()) 
            && e0.getNeighbor(graph.getSelf()).getEdgeCount() > 1) {
        highestWeightE0 = e0;
    }
}
graph.removeEdge(highestWeightE0);

Name:

T_J2b

Changed:

20.05.2016

Discussion: