Package edu.uci.ics.jung.io
Interface GraphReader<G extends edu.uci.ics.jung.graph.Hypergraph<V,E>,V,E>
-
- Type Parameters:
G
- the graph typeV
- the vertex typeE
- the edge type
- All Known Implementing Classes:
GraphMLReader2
public interface GraphReader<G extends edu.uci.ics.jung.graph.Hypergraph<V,E>,V,E>
Interface for a reader of graph objects
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes this resource and frees any resources.G
readGraph()
Reads a single graph object, if one is available.
-
-
-
Method Detail
-
readGraph
G readGraph() throws GraphIOException
Reads a single graph object, if one is available.- Returns:
- the next graph object, or null if none exists.
- Throws:
GraphIOException
- thrown if an error occurred.
-
close
void close() throws GraphIOException
Closes this resource and frees any resources.- Throws:
GraphIOException
- thrown if an error occurred.
-
-