public class GraphLoader
extends java.lang.Object
Constructor and Description |
---|
GraphLoader() |
Modifier and Type | Method and Description |
---|---|
static <VertexType,EdgeType> |
readGraph(GraphLibrary<VertexType,EdgeType> targetGraph,
java.io.File file,
FileFormat format,
Progress progress) |
static <VertexType,EdgeType> |
readGraph(GraphLibrary<VertexType,EdgeType> targetGraph,
java.io.File file,
Progress progress)
Loads the given graph file and creates respective vertices and edges in the given target graph.
|
public static <VertexType,EdgeType> ExecutionError readGraph(GraphLibrary<VertexType,EdgeType> targetGraph, java.io.File file, Progress progress)
targetGraph
- the graph to create vertices and edges according to the content of the filefile
- the graph file.progress
- a callback to inform about the loading progresspublic static <VertexType,EdgeType> ExecutionError readGraph(GraphLibrary<VertexType,EdgeType> targetGraph, java.io.File file, FileFormat format, Progress progress)