class Bio::NeXML::IntTree

Public Class Methods

new( id = nil, options = {}, &block ) click to toggle source
Calls superclass method Bio::NeXML::Tree::new
# File lib/bio/db/nexml/trees.rb, line 428
def initialize( id = nil, options = {}, &block )
  super
end

Public Instance Methods

add_edge( edge ) click to toggle source
Calls superclass method Bio::NeXML::Tree#add_edge
# File lib/bio/db/nexml/trees.rb, line 432
def add_edge( edge )
  edge.length = edge.length.to_i
  super
end
create_edge( options = {} ) click to toggle source
# File lib/bio/db/nexml/trees.rb, line 437
def create_edge( options = {} )
  edge = IntEdge.new( Bio::NeXML.generate_id( IntEdge ), options )
  self << edge
  edge        
end
create_rootedge( options = {} ) click to toggle source
# File lib/bio/db/nexml/trees.rb, line 443
def create_rootedge( options = {} )
  rootedge = IntRootEdge.new( Bio::NeXML.generate_id( IntRootEdge ), options )
  self << rootedge
  rootedge
end