Package | Description |
---|---|
datastructures.graph |
Modifier and Type | Method and Description |
---|---|
static IGraph |
GraphFactory.newInstanceGraph(boolean dir,
boolean wei)
This method returns an instance of IGraph
|
static IGraph |
GraphFactory.newInstanceGraph(boolean dir,
boolean wei,
int cap)
This method returns an instance of IGraph with a number of vertices.
|
static IGraph |
GraphTools.readGraph(java.lang.String fich)
Read a file that contains the information to generate a graph this file
must have the next structure true/false, depending on if the graph is
directed or not true/false, depending on if the graph is weighted or not
number of vertices number of edges the rest of the file must contains the
edges, one in each line with the next structure: vertex origin ;
destination vertex
|