class Bio::NeXML::IntNetwork

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 498
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 502
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 507
def create_edge( options = {} )
  edge = IntEdge.new( Bio::NeXML.generate_id( IntEdge ), options )
  self << edge
  edge        
end