class Node[T] extends Serializable
Represent a node in a graph. The connections between nodes are directed.
- T
element type
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- Node
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Node(element: T)
- element
element
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
->(node: Node[T]): Node[T]
Point to another node
Point to another node
- node
another node
- returns
another node
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
add(node: Node[T], e: Edge = Edge()): Node[T]
Point to another node
Point to another node
- node
another node
- returns
another node
- def addNexts(node: Node[T], e: Edge = Edge()): Unit
- def addPrevious(node: Node[T], e: Edge = Edge()): Unit
-
def
apply[M](meta: M): (Node.this.type, M)
A sugar allows user to generate the pair (n, something) via n(something)
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
delete(node: Node[T], e: Edge = null): Node[T]
Remove linkage with another node
Remove linkage with another node
- node
another node
- returns
current node
- var element: T
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def from(node: Node[T], e: Edge = Edge()): Node[T]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
graph(reverse: Boolean = false): DirectedGraph[T]
Use current node as source to build a direct graph
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nextEdges: Seq[Edge]
The edges start from this node
-
def
nextNodes: Seq[Node[T]]
The nodes pointed by current node
-
def
nextNodesAndEdges: Seq[(Node[T], Edge)]
The nodes pointed by current node with the connect edges
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
prevEdges: Seq[Edge]
The edges connect to this node
-
def
prevNodes: Seq[Node[T]]
The nodes point to current node
-
def
prevNodesAndEdges: Seq[(Node[T], Edge)]
The nodes pointed to current node with the connect edges
-
def
removeNextEdges(): Node[T]
remove edges that connect next nodes
remove edges that connect next nodes
- returns
current node
-
def
removePrevEdges(): Node[T]
remove edges that connect previous nodes
remove edges that connect previous nodes
- returns
current node
- def setElement(e: T): Node.this.type
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Node → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )