public class DIMACSLoader
extends java.lang.Object
Constructor and Description |
---|
DIMACSLoader() |
Modifier and Type | Method and Description |
---|---|
static <VertexType,EdgeType> |
createFromDIMACS(GraphLibrary<VertexType,EdgeType> targetGraph,
java.io.File file,
Progress progress)
Loads the given DIMACS file and creates respective vertices and edges in the given target graph.
|
public static <VertexType,EdgeType> void createFromDIMACS(GraphLibrary<VertexType,EdgeType> targetGraph, java.io.File file, Progress progress) throws ParseDIMACSException, java.io.IOException
targetGraph
- the graph to create the vertices and edges according to the DIMACS file contentfile
- the DIMCAS file to loadprogress
- a callback to inform about the loading progress. Can be null as wellParseDIMACSException
java.io.IOException