# details of the ‘sample\_degseq’ function

**URL:** <https://igraph.discourse.group/t/details-of-the-sample-degseq-function/1806>\
**Category:** Usage\
**Tags:** R\
**Created:** [30 April 2024 08:15 UTC](https://igraph.discourse.group/t/details-of-the-sample-degseq-function/1806 "2024-04-30T08:15:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lila](https://avatars.discourse-cdn.com/v4/letter/l/ccd318/32.png) [@Lila](https://igraph.discourse.group/u/Lila)\
**Post date:** [30 April 2024 08:15 UTC](https://igraph.discourse.group/t/details-of-the-sample-degseq-function/1806/1 "2024-04-30T08:15:56Z")

</div>

I’m utilizing the “sample\_degseq” function in the igraph package to generate null models. I would like to know how this function works in detail and mainly in what order the edges are assigned to respect the degrees of the vertices.  
Could you provide me with more information on this?

---

<div class="post-metadata">

**Author:** ![szhorvat](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/szhorvat/32/3_2.png) [@szhorvat](https://igraph.discourse.group/u/szhorvat)\
**Post date:** [30 April 2024 08:19 UTC](https://igraph.discourse.group/t/details-of-the-sample-degseq-function/1806/2 "2024-04-30T08:19:50Z")

</div>

Please have a look at the documentation of the C library, and let us know if you have remaining questions.

[https://igraph.org/c/html/latest/igraph-Generators.html#igraph\_degree\_sequence\_game](https://igraph.org/c/html/latest/igraph-Generators.html#igraph_degree_sequence_game)

The R interface still uses the old names for the available methods. To match up the names you see in R with the C documentation, see here:

> <https://github.com/igraph/igraph/blob/c6606ae1222d5a3bdc4414870278c009bb2c61e2/include/igraph_constants.h#L94-L104>

The issue to update the method names is [here](https://github.com/igraph/rigraph/issues/876).
