Modifier | Constructor and Description |
---|---|
protected |
NodeBuilder(AtomMatcher matcher)
Construct a node for a query atom
|
Modifier and Type | Method and Description |
---|---|
void |
addEdge(EdgeBuilder edge)
Adds edge to the edge list.
|
void |
addNeighbor(NodeBuilder node)
Adds neighbor to the Neighbors List.
|
int |
countNeighbors()
Returns Neighbors count.
|
boolean |
equals(java.lang.Object obj) |
AtomMatcher |
getAtomMatcher()
Returns Query Atom.
|
java.util.List<IEdge> |
getEdges()
Returns List of Edges.
|
int |
hashCode() |
java.lang.Iterable<INode> |
neighbors()
Returns neighbors.
|
java.lang.String |
toString() |
protected NodeBuilder(AtomMatcher matcher)
matcher
- public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int countNeighbors()
countNeighbors
in interface INode
public java.lang.Iterable<INode> neighbors()
public AtomMatcher getAtomMatcher()
getAtomMatcher
in interface INode
public java.util.List<IEdge> getEdges()
public void addEdge(EdgeBuilder edge)
public void addNeighbor(NodeBuilder node)
addNeighbor
in interface INode
node
- add a node.