Package cdc.graphs.impl
Class GraphFilter<N,E>
java.lang.Object
cdc.graphs.impl.GraphFilter<N,E>
- Type Parameters:
N- Node classE- Edge class
- All Implemented Interfaces:
GraphAdapter<N,E>
- Direct Known Subclasses:
ExplicitSubGraph,ImplicitSubGraph,InvertedGraph
Base class used to filter a graph and make it appear as another graph.
- Author:
- Damien Carbonne
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckEdgeValidity(E edge) Checks that an edge belongs to delegate.protected voidcheckNodeValidity(N node) Checks that a node belongs to delegate.final GraphAdapter<N,E> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cdc.graphs.GraphAdapter
containsEdge, containsNode, getConnectedNodes, getConnectedNodes, getConnectivity, getEdges, getEdges, getEdges, getEdges, getEdges, getEdges, getEdgesCount, getEdgesCount, getEdgesCount, getEdgesStream, getEdgesStream, getEdgesStream, getLeaves, getNodes, getNodes, getNodesCount, getNodesStream, getRoots, getTip, hasEdge, hasEdges, hasEdges, hasEdges, hasNodes, isLeaf, isRoot
-
Field Details
-
delegate
-
-
Constructor Details
-
GraphFilter
-
-
Method Details
-
checkNodeValidity
Checks that a node belongs to delegate.- Parameters:
node- The tested node.- Throws:
IllegalArgumentException- When delegate does not contain node.
-
checkEdgeValidity
Checks that an edge belongs to delegate.- Parameters:
edge- The tested edge.- Throws:
IllegalArgumentException- When delegate does not contain edge.
-
getDelegate
-