# Fixed degrees between two subgraphs

**URL:** <https://discourse.julialang.org/t/fixed-degrees-between-two-subgraphs/43430>\
**Category:** New to Julia\
**Created:** [July 21, 2020, 12:45pm UTC](https://discourse.julialang.org/t/fixed-degrees-between-two-subgraphs/43430 "2020-07-21T12:45:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![erlebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erlebach/32/12973_2.png) [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Post date:** [July 21, 2020, 12:45pm UTC](https://discourse.julialang.org/t/fixed-degrees-between-two-subgraphs/43430/1 "2020-07-21T12:45:42Z")

</div>

I have a graph of N nodes, no edges. I partition the graph pinto two subgraphs with N1 and N2 nodes. I would like to create edges between the two graphs such that the degree distribution in each graph is as close as possible to a prescribed distribution. Is there such an algorithm? I am aware of a few algorithms to create one graph with edges with specified degree distribution. Thanks.
