← Winnitude! Search  ·  Reader Mode (561 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 7 LINKS

Randomize.Graph

Repository navigation

Randomize.Graph

Jump to bottom 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()

Clone this wiki locally