public interface GraphRepository
GraphRepository is a container of Graph definitions.| Modifier and Type | Method and Description |
|---|---|
void |
addGraph(Graph graph)
Adds a graph to the repository and overwrites any previously defined
graph with identical name and version.
|
Graph |
getGraph(String name,
Integer version)
Returns the
Graph with the given name and the given version,
or the latest graph with the given name if no version is null,
or null if no such graph is found.The latest graph is the graph with the greatest version number. |
Set<Graph> |
getGraphs()
Returns all graphs accessible via this repository.
|
Set<Graph> |
getGraphs(String name)
Returns all graphs with the given name ordered with decreasing version
number.
|
Graph getGraph(String name, Integer version)
Graph with the given name and the given version,
or the latest graph with the given name if no version is null,
or null if no such graph is found.name - the graph nameversion - the graph versionGraph with the given name and the given version, or
null if no suitable graph is found.Set<Graph> getGraphs(String name)
name - the graph nameSet<Graph> getGraphs()
void addGraph(Graph graph)
graph - the graph to be addedCopyright © 2018. All rights reserved.