Text this: Method to calculate the diameter of undirected double-loop networks G(N;±1,±s)