Tree

case class Tree[V](value: V, children: Set[Tree[V]])

A simple recursive tree class.

Value parameters:
children

The children of this node.

value

The value of this node.

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def isSubtreeOf(other: Tree[V]): Boolean

Returns true if this tree is a subtree of another tree, false otherwise.

Returns true if this tree is a subtree of another tree, false otherwise.

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Returns:

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Concrete fields

lazy val vertices: Set[V]