create a graph with specified degrees

2013-01-07
2013-05-29
  • Mariem Jelassi
    Mariem Jelassi
    2013-01-07

    Hello,
    I want to create a graph with specified degrees, for example : 5 vertices with degree = 1 & 4 vertices with degree = 2 & 3 vertices with degree = 3.
    How can I do that ? I want the equivalent of  configuration_model() of python.
    could anyone help me ?
    Thank you.

     
  • You'll need to implement this yourself, or find an existing implementation elsewhere; JUNG does not provide a graph factory for this kind of specification.

    Note that not all such specifications are valid.

     
  • Mariem Jelassi
    Mariem Jelassi
    2013-01-07

    ok, thank you.