V
- the graph vertex typeE
- the graph edge typepublic interface GraphImporter<V,E>
Modifier and Type | Method and Description |
---|---|
default void |
importGraph(Graph<V,E> g,
File file)
Import a graph
|
default void |
importGraph(Graph<V,E> g,
InputStream in)
Import a graph
|
void |
importGraph(Graph<V,E> g,
Reader in)
Import a graph
|
default void importGraph(Graph<V,E> g, InputStream in) throws ImportException
g
- the graphin
- the input streamImportException
- in case any error occurs, such as I/O or parse errorvoid importGraph(Graph<V,E> g, Reader in) throws ImportException
g
- the graphin
- the input readerImportException
- in case any error occurs, such as I/O or parse errordefault void importGraph(Graph<V,E> g, File file) throws ImportException
g
- the graphfile
- the file to read fromImportException
- in case any error occurs, such as I/O or parse errorCopyright © 2016. All rights reserved.