title: Watts and Strogatz graphs in Python
body: <p>I need to generate a random graph with Watts and Strogatz. I am looking for an identical format to my real data. I have to save it in csv or txt file. It is more like <a href="http://en.wikipedia.org/wiki/Small-world_network" rel="nofollow">Small World Network</a>
  As per what i have read in the about Watts and Strogatz is it is undirected graph with no weights. But i need to generate undirected graph with weight. </p>
  
  <p>Real data format </p>
  
  <pre><code>Node  Node weight = time in seconds
    453  645    343
    453  645    533
    645  8090   349
    645  453    3563
    564  645    3533
    564  453    345
    8090 453    563
    8090 645    4525
    564  8090   3533
  </code></pre>
  
  <p>The Degree is 1 and the two node pairs are connected for certain time and that is given in seconds. what is the best way to generate the graph data with Seed (0 to 4) in time (1 to 5), i.e. Seed0_time1 and so on till Seed4_time5. Five instances. </p>
  
  <p>I understand it might be too broad but it would be great if someone can point me toward the right direction and with some code in support. I did look for help here i see hardly any posts that have been answered. </p>