[#57747888]  found a bug, corrected it and commiting.

Nodes number were higher in the network graph
 because I had added the node_pair directly as a node instead of adding
them separately.