|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelix.graph.algo.c3part.compressor.NoCompressor
public class NoCompressor
A compressor that does nothing
Constructor Summary | |
---|---|
NoCompressor()
|
Method Summary | |
---|---|
void |
compress(Graph graph)
compress graph |
void |
compress(Graph graph,
Logger logger)
same as compress with logging compression rate |
void |
compressVertex(Vertex v,
Vertex root,
Graph graph)
compress single vertex v on root vertex |
void |
expand(Graph graph)
expand graph to its uncompressed (initial) state |
void |
expandVertex(Vertex v,
Graph graph)
restore compressed alias vertex v to its initial state |
void |
flatten(Graph graph)
expand graph without edges AV TODO temporary placeholder |
Iterable<Vertex> |
getAliases(Vertex V)
get aliases of root vertex return empty set if v is not root |
RColorSet |
getColors(Vertex V,
Vertex U)
get proper colors of edge (v, u). |
Iterable<Vertex> |
getNeighbors(Vertex v)
return neighbors of vertex v, including aliases of neighbors |
String |
getParamInfo()
get optional parameters info |
Vertex |
getRoot(Vertex V)
get root of a compressed vertex |
Iterable<Vertex> |
getVertices(Graph graph)
return all vertices in compressed graph. |
boolean |
isAlias(Vertex V)
tell if vertex is an Alias vertex. |
boolean |
isNormal(Vertex V)
tell if vertex is a normal vertex. |
boolean |
isRoot(Vertex V)
tell if vertex is a root vertex. |
int |
nbVertices(Graph graph)
return the number of vertices in graph (including compressed one) |
GSet<Vertex> |
retrieveSet()
retrieve previously stored set this is an optional operation |
void |
storeSet(GSet<Vertex> set)
temporarily stores a set of vertices this is an optional operation |
boolean |
subsumes(Vertex v,
Vertex u,
Graph graph)
tells if vertex v subsumes vertex u |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoCompressor()
Method Detail |
---|
public boolean subsumes(Vertex v, Vertex u, Graph graph)
GraphCompressor
subsumes
in interface GraphCompressor
public void compressVertex(Vertex v, Vertex root, Graph graph)
GraphCompressor
compressVertex
in interface GraphCompressor
public void compress(Graph graph)
GraphCompressor
compress
in interface GraphCompressor
public void compress(Graph graph, Logger logger)
GraphCompressor
compress
with logging compression rate
compress
in interface GraphCompressor
public void expandVertex(Vertex v, Graph graph)
GraphCompressor
expandVertex
in interface GraphCompressor
public void expand(Graph graph)
GraphCompressor
expand
in interface GraphCompressor
public Iterable<Vertex> getVertices(Graph graph)
GraphCompressor
getVertices
in interface GraphCompressor
public int nbVertices(Graph graph)
GraphCompressor
nbVertices
in interface GraphCompressor
public Iterable<Vertex> getNeighbors(Vertex v)
GraphCompressor
getNeighbors
in interface GraphCompressor
public RColorSet getColors(Vertex V, Vertex U)
MultiGraphCompressor
getColors
in interface MultiGraphCompressor
public boolean isAlias(Vertex V)
GraphCompressor
isAlias
in interface GraphCompressor
public boolean isRoot(Vertex V)
GraphCompressor
isRoot
in interface GraphCompressor
public boolean isNormal(Vertex V)
GraphCompressor
isNormal
in interface GraphCompressor
public Vertex getRoot(Vertex V)
GraphCompressor
getRoot
in interface GraphCompressor
public Iterable<Vertex> getAliases(Vertex V)
GraphCompressor
getAliases
in interface GraphCompressor
public void flatten(Graph graph)
GraphCompressor
flatten
in interface GraphCompressor
public void storeSet(GSet<Vertex> set)
GraphCompressor
storeSet
in interface GraphCompressor
public GSet<Vertex> retrieveSet()
GraphCompressor
retrieveSet
in interface GraphCompressor
public String getParamInfo()
GraphCompressor
getParamInfo
in interface GraphCompressor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |