t
- public abstract class GraphBuilder<t> extends Object implements Cloneable, Serializable
Modifier and Type | Field and Description |
---|---|
protected CallbackInterface |
callback |
protected int |
computed_similarities |
protected int |
k |
protected SimilarityInterface<t> |
similarity |
Constructor and Description |
---|
GraphBuilder() |
Modifier and Type | Method and Description |
---|---|
protected abstract Graph<t> |
_computeGraph(List<Node<t>> nodes) |
Object |
clone() |
Graph<t> |
computeGraph(List<Node<t>> nodes) |
double |
estimatedSpeedup() |
CallbackInterface |
getCallback() |
int |
getComputedSimilarities() |
int |
getK() |
SimilarityInterface |
getSimilarity() |
static ArrayList<Node<String>> |
readFile(String path) |
void |
setCallback(CallbackInterface callback) |
void |
setK(int k)
Define k the number of edges per node.
|
void |
setSimilarity(SimilarityInterface<t> similarity) |
void |
test(List<Node<t>> nodes)
Build the approximate graph, then use brute-force to build the exact
graph and compare the results
|
protected int k
protected SimilarityInterface<t> similarity
protected CallbackInterface callback
protected int computed_similarities
public int getK()
public void setK(int k)
k
- public SimilarityInterface getSimilarity()
public void setSimilarity(SimilarityInterface<t> similarity)
public CallbackInterface getCallback()
public void setCallback(CallbackInterface callback)
public int getComputedSimilarities()
public void test(List<Node<t>> nodes)
nodes
- public double estimatedSpeedup()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2015. All rights reserved.