watts strogatz not working, need better implementation of swap edge