When adding node back to the same community, use the original weights
dict.  When moving a node from one community to another, carry along
weight of the edge looping back to the node into the indegree for the
node's new community.  Get rid of compiler warnings.