Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.4k
Randomize.Graph
Jason Park edited this pageJul 13, 2018 ·1 revision
Create a random adjacency matrix.Usage
Name | Description | |
---|---|---|
Randomize.Graph | The graph would haveN nodes and roughlyratio * 100% of all the possible edges, and the weight of each edge would be randomized byrandomizer . | Usage |
newRandomize.Graph(intN =5,doubleratio =.3,Randomizerrandomizer =newInteger()) | ||
directed | The graph would be directed ifdirected istrue . | Usage |
Randomize.Graphdirected(booleandirected =true) | ||
weighted | The graph would be weighted ifweighted istrue . | Usage |
Randomize.Graphweighted(booleanweighted =true) | ||
create | Create a random adjacency matrix. | Usage |
Object[][]create() |