- java.lang.Object
-
- org.logicng.graphs.datastructures.Node<T>
-
- Type Parameters:
T- the element type of the node
public final class Node<T> extends Object
A generic node of a graph.- Since:
- 1.2
- Version:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tcontent()Returns the content of the node.booleanequals(Object o)Graph<T>graph()Returns the graph to which the node belongs.inthashCode()Set<Node<T>>neighbours()Returns the neighbours of the node.StringtoString()
-
-
-
Method Detail
-
content
public T content()
Returns the content of the node.- Returns:
- the content of the node
-
neighbours
public Set<Node<T>> neighbours()
Returns the neighbours of the node.- Returns:
- the neighbours of the node
-
graph
public Graph<T> graph()
Returns the graph to which the node belongs.- Returns:
- the node's graph
-
-