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.
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.
I know very well how to generate Erdos-Renyi graph, but I can't find something similar for scale-free and small-world cases.
Pseudo-code, as well as C/C++, Maltab, Java and Python are good for me.
I know nothing about scale-free or small-world networks (only have heard the names), but a quick google search led me to the following wikipedia pages:
https://en.wikipedia.org/wiki/Barab%C3%A1si%E2%80%93Albert_model
https://en.wikipedia.org/wiki/Watts_and_Strogatz_model
Both algorithms are well-descriped in these Wikipedia pages.