org.jrdf.graph
Interface GraphFactory

All Known Subinterfaces:
ReadWriteGraphFactory
All Known Implementing Classes:
GraphFactoryImpl, SortedResultsGraphFactory

public interface GraphFactory

Allows the construction of a graph.

Version:
$Id: GraphFactory.java 3271 2010-05-04 21:43:48Z newmana $
Author:
Andrew Newman

Method Summary
 void close()
          Any underlying resources will be closed (such as open files).
 Graph getGraph()
          Returns the same graph instance (with the same underlying data structures - node pools, etc).
 

Method Detail

getGraph

Graph getGraph()
Returns the same graph instance (with the same underlying data structures - node pools, etc). A factory will only ever return one instance of a graph so that nodes taken from graphs from the same factory will be equal.

Returns:
a new graph instance.

close

void close()
Any underlying resources will be closed (such as open files).