- Type Parameters:
N - node type
E - edge type
- All Implemented Interfaces:
IGraph<N,E>
Graph with label.
- Since:
- 2.0.0
- Author:
- Reiner Jung
-
Constructor Summary
Constructors
-
Method Summary
com.google.common.graph.MutableNetwork<N,E>
Get the underlying google graph (network).
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
GraphImpl
public GraphImpl(String label,
com.google.common.graph.MutableNetwork<N,E> graph)
-
Method Details
-
getGraph
public com.google.common.graph.MutableNetwork<N,E> getGraph()
Description copied from interface: IGraph
Get the underlying google graph (network).
- Specified by:
getGraph in interface IGraph<N extends INode,E extends IEdge>
- Returns:
- return the graph
-
-
setLabel
public void setLabel(String label)
Description copied from interface: IGraph
Set the graph label.
- Specified by:
setLabel in interface IGraph<N extends INode,E extends IEdge>
- Parameters:
label - label of the graph
-
findNode
Description copied from interface: IGraph
Find a node by its id.
- Specified by:
findNode in interface IGraph<N extends INode,E extends IEdge>
- Parameters:
id - id of the node
- Returns:
- returns an optional which may contain the node or nothing when no node with the given id exists
-
findEdge
Description copied from interface: IGraph
Find an edge by its id.
- Specified by:
findEdge in interface IGraph<N extends INode,E extends IEdge>
- Parameters:
id - id of the edge
- Returns:
- returns an optional which may contain the edge or nothing when no edge with the given id exists