lib/jumoku/builders/shared.rb in jumoku-0.2.0 vs lib/jumoku/builders/shared.rb in jumoku-0.2.1

- old
+ new

@@ -1,17 +1,14 @@ module Jumoku # This module provides the basic routines needed to implement the specialized - # builders: {UndirectedTreeBuilder} and {DirectedTreeBuilder}. Those - # implementations are under the control of the {TreeAPI}. + # builders: {UndirectedTreeBuilder} and {DirectedTreeBuilder}. # module Shared def self.included(base) base.class_eval do # Late aliasing as it references methods provided by Plexus modules. alias has_node? has_vertex? - alias has_branch? has_edge? - include TreeAPI end end # Adds the node to the tree. # @@ -174,10 +171,10 @@ # * acyclic # * connected # # @return [Boolean] def valid? - acyclic? and connected? and not directed? + acyclic? and connected? end # Is the node a terminal node? # # @return [Boolean]