code: protected void addNeighborToOrdering(TrustGraphNodeId neighbor) {
  
          int position = rng.nextInt(orderedNeighbors.size()+1);
          
          if (position == orderedNeighbors.size()) {
              orderedNeighbors.add(neighbor);
          }
          else {
              orderedNeighbors.add(position, neighbor);
          }
      }
docs: Internal policy method.
  
  Implements the policy for updating the random ordering of
  neighbors when a new neighbor is added. By default this
  inserts at the back and then swaps with a random neighbor.
  
  Note: When using this policy, adding neighbors may distrupt the
  set of neighbors that are advertised to in the case that
  only a subset is used.
  
  It is assumed that the neighbor is not already in the list.