N
- The type of the Nodes in the graphE
- The type of the Edges in the graphpublic class RandomRewire<N,E> extends Rewire<N,E>
Constructor and Description |
---|
RandomRewire(Graph<N,E> graph,
EdgeLabeler<N,E> el) |
RandomRewire(Graph<N,E> graph,
EdgeLabeler<N,E> el,
int mindegree)
Create a RandomRewire graph rewirer, with a minimum out-degree
which nodes should have after the graph is rewired.
|
Modifier and Type | Method and Description |
---|---|
void |
rewire()
Rewire the whole graph.
|
RandomRewire<N,E> |
set_mindegree(int mindegree)
Set the minimum out-degree which nodes should have after the graph is
rewired.
|
public RandomRewire(Graph<N,E> graph, EdgeLabeler<N,E> el, int mindegree)
graph
- The graph to rewire.el
- An EdgeLabeler callback, to allow the user to create Labels
for new Edges.mindegree
- The minimum out degree (edges to other nodes)public RandomRewire<N,E> set_mindegree(int mindegree)
mindegree
- The minimum out degree (edges to other nodes)