public class Graph
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Graph.Selection |
| Constructor and Description |
|---|
Graph(java.util.Set<java.lang.String> filterWords,
Graph.Selection selection) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLink(java.lang.String source,
java.lang.String target)
Adds or updates link between two words
|
GraphDataObject |
toDataObject(int num)
Returns the graph as a GraphDataObject
|
java.lang.String |
toString() |
public Graph(java.util.Set<java.lang.String> filterWords,
Graph.Selection selection)
filterWords - words that should be rejected by the graphselection - criteriapublic void addLink(java.lang.String source,
java.lang.String target)
source - first word of the phrasetarget - second word of the phrasepublic GraphDataObject toDataObject(int num)
num - how many nodes shall be in the resulting graphpublic java.lang.String toString()
toString in class java.lang.Object