Module: Jumoku::TreeBuilder

Includes:
Extended, RawUndirectedTreeBuilder
Included in:
Tree
Defined in:
lib/jumoku/builders/tree.rb

Overview

This builder extends RawUndirectedTreeBuilder implementation.

It provides an undirected tree which acts as a hierarchical structure, known as a tree.

Instance Attribute Summary

Attributes included from Shared

#_options

Method Summary

Methods included from Extended

#add_branch, #add_branches, #add_branches!, #add_consecutive_nodes, #add_consecutive_nodes!, #add_node, #add_nodes, #add_nodes!, #branch?, #branches?, #branches_among?, #node?, #nodes?, #nodes_among?, #num_branches, #num_nodes, #remove_branch, #remove_branches, #remove_branches!, #remove_node, #remove_nodes, #remove_nodes!

Methods included from RawUndirectedTreeBuilder

#initialize, #valid?

Methods included from Shared

#add_branch!, #add_node!, #branches, #empty?, included, #nodes, #remove_branch!, #remove_node!, #terminal?, #terminal_nodes, #valid?