public final class DGraphFactory extends Object
DGraphFactory.
Modifier and Type | Method and Description |
---|---|
static DGraphFactory |
getInstance()
Return the singleton instance of this class.
|
ConcreteDGraph |
random(int size)
Generates a random directed graph of size nodes.
|
ConcreteDGraph<Integer,?> |
random(int size,
double threshold)
Generates a random directed graph of size nodes.
|
public ConcreteDGraph<Integer,?> random(int size, double threshold)
Generates a random directed graph of size nodes.
size
- the number of nodes of the generated graphthreshold
- the threshold to generate an edgepublic ConcreteDGraph random(int size)
Generates a random directed graph of size nodes.
size
- the number of nodes of the generated graphpublic static DGraphFactory getInstance()
Return the singleton instance of this class.
Copyright © 2010–2016 The Galactic Organization. All rights reserved.