Class GraphFilter<N,E>

java.lang.Object
cdc.graphs.impl.GraphFilter<N,E>
Type Parameters:
N - Node class
E - Edge class
All Implemented Interfaces:
GraphAdapter<N,E>
Direct Known Subclasses:
ExplicitSubGraph, ImplicitSubGraph, InvertedGraph

public abstract class GraphFilter<N,E> extends Object implements GraphAdapter<N,E>
Base class used to filter a graph and make it appear as another graph.
Author:
Damien Carbonne
  • Field Details

  • Constructor Details

  • Method Details

    • checkNodeValidity

      protected void checkNodeValidity(N node)
      Checks that a node belongs to delegate.
      Parameters:
      node - The tested node.
      Throws:
      IllegalArgumentException - When delegate does not contain node.
    • checkEdgeValidity

      protected void checkEdgeValidity(E edge)
      Checks that an edge belongs to delegate.
      Parameters:
      edge - The tested edge.
      Throws:
      IllegalArgumentException - When delegate does not contain edge.
    • getDelegate

      public final GraphAdapter<N,E> getDelegate()