public class GraphTools
extends java.lang.Object
Constructor and Description |
---|
GraphTools() |
Modifier and Type | Method and Description |
---|---|
static IGraph |
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
|
public static IGraph readGraph(java.lang.String fich) throws java.io.IOException
java.io.IOException