public interface SimilarityGraphBuilder<V,G extends SimilarityGraph<V>>
| Modifier and Type | Method and Description |
|---|---|
SimilarityGraphBuilder<V,G> |
add(SimEdge<V> simEdge)
Add the
simEdge to the graph. |
SimilarityGraphBuilder<V,G> |
add(V vertex)
Add the
vertex to the graph |
SimEdge<V> |
add(V vertex1,
V vertex2,
double score)
Create and add an edge from
vertex1 to vertex2 with similarity
equal to score to the graph. |
G |
build() |
int |
edgeCount()
Return the number of edges currently in the graph
|
boolean |
isReusable()
Returns true if build can be called more than once, false otherwise.
|
SimilarityGraphBuilder<V,G> add(V vertex)
vertex to the graphvertex - the vertex to addSimEdge<V> add(V vertex1, V vertex2, double score)
vertex1 to vertex2 with similarity
equal to score to the graph.
If a vertex is not present in the graph the vertex is added to the graph.vertex1 - the parent vertexvertex2 - the child vertexscore - the similarity of the edgeint edgeCount()
SimilarityGraphBuilder<V,G> add(SimEdge<V> simEdge)
simEdge to the graph.simEdge - the edge to addG build()
boolean isReusable()
Copyright © 2016. All Rights Reserved.