public class GraphFactory
extends java.lang.Object
Constructor and Description |
---|
GraphFactory() |
Modifier and Type | Method and Description |
---|---|
static IGraph |
newInstanceGraph(boolean dir,
boolean wei)
This method returns an instance of IGraph
|
static IGraph |
newInstanceGraph(boolean dir,
boolean wei,
int cap)
This method returns an instance of IGraph with a number of vertices.
|
public static IGraph newInstanceGraph(boolean dir, boolean wei, int cap)
dir
- sets if the IGraph is directedwei
- sets if the IGraph is weightedcap
- number of verticespublic static IGraph newInstanceGraph(boolean dir, boolean wei)
dir
- sets if the IGraph is directedwei
- sets if the IGraph is weighted