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 ?
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.
ok, thank you.