public interface SemanticNetwork
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
double |
getAssociation(SemanticLabel from,
SemanticLabel to)
Gets the association between two nodes in the network.
|
java.util.Collection<SemanticLabel> |
getNodes()
Gets the nodes that are in the network.
|
int |
getNumNodes()
Gets the total number of nodes in the network.
|
java.util.Collection<SemanticLabel> |
getOutLinks(SemanticLabel nodeLabel)
Gets the outgoing links from a given node.
|
boolean |
isNode(SemanticLabel label)
Returns true if the given SemanticLabel is a node in the
SemanticNetwork.
|
int getNumNodes()
boolean isNode(SemanticLabel label)
label
- The label to evaluate.java.util.Collection<SemanticLabel> getNodes()
java.util.Collection<SemanticLabel> getOutLinks(SemanticLabel nodeLabel)
nodeLabel
- The node to get the outgoing links fromdouble getAssociation(SemanticLabel from, SemanticLabel to)
from
- The node the association is fromto
- The node the association is to