helix.graph.algo.c3part.compressor
Class AbstractMultiCompressor

java.lang.Object
  extended by helix.graph.algo.c3part.compressor.AbstractCompressor
      extended by helix.graph.algo.c3part.compressor.AbstractMultiCompressor
All Implemented Interfaces:
GraphCompressor, MultiGraphCompressor
Direct Known Subclasses:
MultiIdentCompressor, MultiInColorsCompressor, MultiInSetColorsCompressor, MultiInSetCompressor

public abstract class AbstractMultiCompressor
extends AbstractCompressor
implements MultiGraphCompressor


Constructor Summary
AbstractMultiCompressor()
           
 
Method Summary
 void expandVertex(Vertex V, Graph multi)
          restore compressed vertex v to its initial state
 RColorSet getColors(Vertex V, Vertex U)
          Get color of edge (V,U) if it exists, else compute the colors it should have according to this compressor.
abstract  Iterable<Vertex> patternSet_(Vertex V, Graph multi)
          delegate pattern set
abstract  void restoreEdge_(Vertex V, Vertex W, Vertex Root, Graph multi)
          delegate edge restoration restore (if needed) edge between V and W
abstract  boolean subsumes_(Vertex V, Vertex U, Graph multi)
          delegate subsumption
 boolean subsumes(Vertex V, Vertex U, Graph multi)
          tells if vertex V subsumes vertex U
 
Methods inherited from class helix.graph.algo.c3part.compressor.AbstractCompressor
compress, compress, compressVertex, expand, flatten, getAliases, getNeighbors, getParamInfo, getRoot, getVertices, isAlias, isNormal, isRoot, nbVertices, retrieveSet, storeSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface helix.graph.algo.c3part.compressor.GraphCompressor
compress, compress, compressVertex, expand, flatten, getAliases, getNeighbors, getParamInfo, getRoot, getVertices, isAlias, isNormal, isRoot, nbVertices, retrieveSet, storeSet
 

Constructor Detail

AbstractMultiCompressor

public AbstractMultiCompressor()
Method Detail

subsumes_

public abstract boolean subsumes_(Vertex V,
                                  Vertex U,
                                  Graph multi)
delegate subsumption


restoreEdge_

public abstract void restoreEdge_(Vertex V,
                                  Vertex W,
                                  Vertex Root,
                                  Graph multi)
delegate edge restoration restore (if needed) edge between V and W


patternSet_

public abstract Iterable<Vertex> patternSet_(Vertex V,
                                             Graph multi)
delegate pattern set


subsumes

public boolean subsumes(Vertex V,
                        Vertex U,
                        Graph multi)
tells if vertex V subsumes vertex U

Specified by:
subsumes in interface GraphCompressor

expandVertex

public void expandVertex(Vertex V,
                         Graph multi)
restore compressed vertex v to its initial state

Specified by:
expandVertex in interface GraphCompressor

getColors

public RColorSet getColors(Vertex V,
                           Vertex U)
Get color of edge (V,U) if it exists, else compute the colors it should have according to this compressor. This may return emty colorSet is V and U are not connected. by default this is the true colors (computed from datagraph). Please override for inSet compressors

Specified by:
getColors in interface MultiGraphCompressor