class Bio::NeXML::FloatNetwork

Public Class Methods

new( id, options = {}, &block ) click to toggle source
Calls superclass method Bio::NeXML::Network::new
# File lib/bio/db/nexml/trees.rb, line 516
def initialize( id, 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 520
def add_edge( edge )
  edge.length = edge.length.to_f
  super
end
create_edge( options = {} ) click to toggle source
# File lib/bio/db/nexml/trees.rb, line 525
def create_edge( options = {} )
  edge = FloatEdge.new( Bio::NeXML.generate_id( FloatEdge ), options )
  self << edge
  edge        
end