Interface GraphReader

All Known Implementing Classes:
GraphMLReader, GraphSONReader, GryoReader, LegacyGraphSONReader

public interface GraphReader
Functions for reading a graph and its graph elements from a different serialization format. Implementations of this class do not need to explicitly guarantee that an object read with one method must have its format equivalent to another. In other words the input to readVertex(InputStream, Function)} need not also be readable by readObject(InputStream, Class). In other words, implementations are free to optimize as is possible for a specific serialization method.

That said, it is however important that the complementary "write" operation in GraphWriter be capable of writing output compatible to its reader. In other words, the output of GraphWriter.writeObject(OutputStream, Object) should always be readable by readObject(InputStream, Class) and the output of GraphWriter.writeGraph(OutputStream, Graph) should always be readable by readGraph(InputStream, Graph).

Author:
Stephen Mallette (http://stephen.genoprime.com)