Tree

problemutils.classes.graphs.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.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

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.

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val vertices: Set[V]