normalizes a vector represented as a map . concode_field_sep Set<Relationship> relationshipSet concode_elem_sep double precision concode_elem_sep Direction relationDirection concode_elem_sep int maxIterations concode_elem_sep Set<Node> nodeSet concode_elem_sep Map<Node,Double> values concode_elem_sep CostEvaluator<Double> costEvaluator concode_elem_sep boolean doneCalculation concode_elem_sep int totalIterations concode_field_sep Double getCentrality concode_elem_sep boolean timeToStop concode_elem_sep int getMaxIterations concode_elem_sep void setMaxIterations concode_elem_sep int runIterations concode_elem_sep void processRelationship concode_elem_sep void reset concode_elem_sep int getTotalIterations concode_elem_sep void calculate
void function ( Map < Node , Double > arg0 ) { double loc0 = 0 ; for ( Node loc1 : arg0 . keySet ( ) ) { double loc2 = arg0 . get ( loc1 ) ; loc0 += loc2 * loc2 ; } loc0 = Math . sqrt ( loc0 ) ; if ( loc0 > 0.0 ) { for ( Node loc1 : arg0 . keySet ( ) ) { arg0 . put ( loc1 , arg0 . get ( loc1 ) / loc0 ) ; } } }