this adds a value to a given node in the centralities map . if the map does not contain the node , it is added . concode_field_sep CentralityType zeroValue concode_elem_sep Set<Node> nodeSet concode_elem_sep SingleSourceShortestPath<ShortestPathCostType> singleSourceShortestPath concode_elem_sep Map<Node,CentralityType> centralities concode_elem_sep boolean doneCalculation concode_elem_sep CostAccumulator<CentralityType> centralityAccumulator concode_field_sep CentralityType getCentrality concode_elem_sep void reset concode_elem_sep void processShortestPaths concode_elem_sep void calculate concode_elem_sep void setCentralityForNode
void function ( Node arg0 , CentralityType arg1 ) { CentralityType loc0 = centralities . get ( arg0 ) ; if ( loc0 == null ) { loc0 = zeroValue ; } centralities . put ( arg0 , centralityAccumulator . addCosts ( loc0 , arg1 ) ) ; }