edu.uci.ics.jung.io
Interface GraphReader<G extends Hypergraph<V,E>,V,E>

Type Parameters:
G - the graph type
V - the vertex type
E - the edge type
All Known Implementing Classes:
GraphMLReader2

public interface GraphReader<G extends Hypergraph<V,E>,V,E>

Interface for a reader of graph objects

Author:
Nathan Mittler - nathan.mittler@gmail.com

Method Summary
 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.


Copyright © 2009. All Rights Reserved.