T
- The type of nodes valuepublic class Graph<T> extends HashMap<Node<T>,NeighborList>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Method and Description |
---|---|
ArrayList<Graph<T>> |
connectedComponents()
Split the graph in connected components (usually you will first prune the
graph to remove "weak" edges).
|
NeighborList |
get(Node node)
Get the neighborlist of this node
|
void |
prune(double threshold)
Remove from the graph all edges with a similarity lower than threshold
|
NeighborList |
search(Node<T> Q,
int K,
int R,
int T,
int E,
SimilarityInterface<T> rho,
boolean debug) |
void |
writeGEXF(String filename)
Writes the graph as a GEXF file (to be used in Gephi, for example)
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public NeighborList get(Node node)
node
- public void prune(double threshold)
threshold
- public ArrayList<Graph<T>> connectedComponents()
public NeighborList search(Node<T> Q, int K, int R, int T, int E, SimilarityInterface<T> rho, boolean debug)
Q
- query pointK
- number of neighbors to findR
- number of random restartsT
- number of greedy stepsE
- number of expansionsrho
- similarity metricpublic void writeGEXF(String filename) throws FileNotFoundException, IOException
filename
- FileNotFoundException
IOException
Copyright © 2015. All rights reserved.