Generating random graphs with arbitrary specified degree distribution

Hello,

I'd like to use graph-tool to generate random graphs obeying example (d)
from Newman et al., PRE 64, 026118.

Basically, there are 1000 people and each person knows between zero and five
others, the number of people in each category being from zero to
five:{86,150,363,238,109,54} -this is the histogram.

Can I use graph-tool to generate graphs with this pdf a la Newman et al.?
Did I miss an example in the documentation detailing how to do this?

Also can I use graph tool to generate random graphs *exactly* with this
degree sequence as in the configurational model?

Cheers,
Rui