Method: StewEucen::Acts::FertileForest::Table::Reconstructers#pollard

Defined in:
lib/fertile_forest/modules/reconstructers.rb

#pollard(base_obj) ⇒ Boolean

Pollard (remove the descendant nodes).

Parameters:

  • base_obj (Entity|Integer)

    Top node to pollard.

Returns:

  • (Boolean)

    true: Success.

  • (Boolean)

    false: Failure.



621
622
623
# File 'lib/fertile_forest/modules/reconstructers.rb', line 621

def pollard(base_obj)
  prune(base_obj, SUBTREE_WITHOUT_TOP_NODE)
end