Skip to content

Randomize.Graph

Jason Park edited this page Jul 13, 2018 · 1 revision

Randomize.Graph

Create a random adjacency matrix. Usage

Methods

Name Description
Randomize.Graph The graph would have N nodes and roughly ratio * 100% of all the possible edges, and the weight of each edge would be randomized by randomizer. Usage
new Randomize.Graph(int N = 5, double ratio = .3, Randomizer randomizer = new Integer())
directed The graph would be directed if directed is true. Usage
Randomize.Graph directed(boolean directed = true)
weighted The graph would be weighted if weighted is true. Usage
Randomize.Graph weighted(boolean weighted = true)
create Create a random adjacency matrix. Usage
Object[][] create()