title: Generate scale-free and small-world networks
body: <p>I'm googling around a lot in order to find a very basic version of algorithms able to generate scale-free and small-world networks. Unfortunately, my search is not giving results.</p>
  
  <p>I don't need something very complicated. Just need something that explain how to generate the desired networks and why the algorithms work that way.</p>
  
  <p>I know very well how to generate Erdos-Renyi graph, but I can't find something similar for scale-free and small-world cases.</p>
  
  <p>Pseudo-code, as well as C/C++, Maltab, Java and Python are good for me.</p>