Generate scale-free networks with desired power-law degree distributions

I'm trying to reproduce the synthetic networks (graphs) described in some
papers.

How to create scale-free networks with a desired power-law degree
distributions,
<http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/file/t496151/微信截图_20190228113722.jpg&gt;
? The lambda λ values are given, like:

1. n = 50000, λ = 3, 2.7, 2.3, with in a paper
2. n = 4000 and λ = 2.5, or n = 6000 and λ = 3 in the other paper

Here are some references:

1. Catastrophic cascade of failures in interdependent networks, Buldyrev et
al. 2010, with a separately provided Supplementary Information
2. Small Cluster in Cyber Physical Systems, Huang et al. 2014
3. Catastrophic cascade of failures in interdependent networks, Havlin et
al. 2010, this is on the Arxiv and somewhat clarifies the first