Graphstream のノードのコレクションを属性でソートしようとしています。どうすればこれができるのかわかりません。
Collection <Node> function (Graph graph){
BetweennessCentrality bcb = new BetweennessCentrality();
bcb.init(graph);
bcb.compute();
System.out.println("A=" + graph.getNode("A").getAttribute("Cb")); // prints the calculated measure
return graph.getNodeSet();
}
この関数は、ノードのセットを属性とともに返しますが、ソートはしていません。
計算された属性でノードのコレクションをソートするにはどうすればよいですか?