public class Node extends Object implements Comparable<Node>
| Modifier and Type | Field and Description |
|---|---|
Set<Node> |
edges
Public members.
|
String |
key |
boolean |
marked |
double |
rank |
NodeValue |
value |
| Modifier and Type | Method and Description |
|---|---|
static Node |
buildNode(Graph graph,
String key,
NodeValue value)
Factory method.
|
int |
compareTo(Node that)
Compare method for sort ordering.
|
void |
connect(Node that)
Connect two nodes with a bi-directional arc in the graph.
|
void |
disconnect(Node that)
Disconnect two nodes removing their bi-directional arc in the graph.
|
boolean |
equals(Object obj) |
String |
getId()
Create a unique identifier for this node, returned as a hex string.
|
int |
hashCode() |
double |
maxNeighbor(double min,
double coeff)
Search nearest neighbors in WordNet subgraph to find the maximum rank of
any adjacent SYNONYM synset.
|
void |
serializeGraph(Set<String> entries)
Traverse the graph, serializing out the nodes and edges.
|
public double rank
public String key
public boolean marked
public NodeValue value
public int compareTo(Node that)
compareTo in interface Comparable<Node>public void connect(Node that)
public void disconnect(Node that)
public String getId()
public double maxNeighbor(double min,
double coeff)
Copyright © 2017. All rights reserved.