title: Generating random graph in r
body: <p>I would like to generate a grandom graph in R using any of the packages.</p>
  
  <p>The desired output would be a two column matrix with the first column listing agents and the second column their connections of the following form:</p>
  
  <pre><code>1 3
  1 4
  1 6
  1 7
  2 2
  2 5
  3 9
  3 11
  3 32
  3 43
  3 2
  4 5
  </code></pre>
  
  <p>I would like to be able to specify the average degree and minimum and maximum number of contacts.</p>
  
  <p>What is the easiest way of doing this?</p>