helix.graph.algo.c3part.compressor
Class MultiInSetCompressor

java.lang.Object
  extended by helix.graph.algo.c3part.compressor.AbstractCompressor
      extended by helix.graph.algo.c3part.compressor.AbstractMultiCompressor
          extended by helix.graph.algo.c3part.compressor.MultiInSetCompressor
All Implemented Interfaces:
GraphCompressor, MultiGraphCompressor

public class MultiInSetCompressor
extends AbstractMultiCompressor


Constructor Summary
MultiInSetCompressor()
           
 
Method Summary
 void compress(Graph graph)
          compress graph -> avoid recoloring root at each compression
 void compressVertex(Vertex V, Vertex Root, Graph multi)
          compress single vertex v on root vertex root
 void expandVertex(Vertex V, Graph multi)
          expand single vertex and recompute root colors
 RColorSet getColors(Vertex V, Vertex U)
          override getColors get proper color between two vertices if there is a physical edge return this color else compute pseudocolors.
 Iterable<Vertex> patternSet_(Vertex V, Graph multi)
          delegate patternSet
 void restoreEdge_(Vertex V, Vertex W, Vertex Root, Graph multi)
          delegate restoration restore (if needed) edge between V and W
 boolean subsumes_(Vertex V, Vertex U, Graph graph)
          delegate subsumption
 
Methods inherited from class helix.graph.algo.c3part.compressor.AbstractMultiCompressor
subsumes
 
Methods inherited from class helix.graph.algo.c3part.compressor.AbstractCompressor
compress, 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, expand, flatten, getAliases, getNeighbors, getParamInfo, getRoot, getVertices, isAlias, isNormal, isRoot, nbVertices, retrieveSet, storeSet
 

Constructor Detail

MultiInSetCompressor

public MultiInSetCompressor()
Method Detail

patternSet_

public final Iterable<Vertex> patternSet_(Vertex V,
                                          Graph multi)
delegate patternSet

Specified by:
patternSet_ in class AbstractMultiCompressor

subsumes_

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

Specified by:
subsumes_ in class AbstractMultiCompressor

restoreEdge_

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

Specified by:
restoreEdge_ in class AbstractMultiCompressor

compressVertex

public void compressVertex(Vertex V,
                           Vertex Root,
                           Graph multi)
Description copied from class: AbstractCompressor
compress single vertex v on root vertex root

Specified by:
compressVertex in interface GraphCompressor
Overrides:
compressVertex in class AbstractCompressor

expandVertex

public void expandVertex(Vertex V,
                         Graph multi)
expand single vertex and recompute root colors

Specified by:
expandVertex in interface GraphCompressor
Overrides:
expandVertex in class AbstractMultiCompressor

getColors

public RColorSet getColors(Vertex V,
                           Vertex U)
override getColors get proper color between two vertices if there is a physical edge return this color else compute pseudocolors.

Specified by:
getColors in interface MultiGraphCompressor
Overrides:
getColors in class AbstractMultiCompressor

compress

public void compress(Graph graph)
compress graph -> avoid recoloring root at each compression

Specified by:
compress in interface GraphCompressor
Overrides:
compress in class AbstractCompressor