for (Iterator itr = m_coord2count.entrySet().iterator(); itr.hasNext();) {
Map.Entry entry = (Map.Entry)itr.next();
Coordinate coord = (Coordinate)entry.getKey();
Integer count = (Integer)entry.getValue();
OptXYNode node = (OptXYNode)m_builder.buildNode();
node.setDegree(count.intValue());
node.setCoordinate(coord);
m_builder.addNode(node);
entry.setValue(node);
}