public class GraphNode extends Object implements Serializable
Constructor and Description |
---|
GraphNode(int id,
StructureElement content)
Initializes a graph node
|
Modifier and Type | Method and Description |
---|---|
void |
addOutgoingEdge(GraphNode n)
Adds an outgoing edge from this node to
n |
String |
edgesToString() |
StructureElement |
getContent() |
int |
getId()
Returns the id of this node
|
List<GraphNode> |
getNeighbours() |
String |
getNodeLabel()
Get the label of a node
|
void |
setContent(StructureElement content)
Sets the content of this node
|
String |
toString() |
public GraphNode(int id, StructureElement content)
id
- the id of the nodecontent
- the content of the nodepublic void addOutgoingEdge(GraphNode n)
n
n
- the destination nodepublic StructureElement getContent()
public String getNodeLabel()
public void setContent(StructureElement content)
content
- the content to be setpublic int getId()
public String edgesToString()
Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.