Class: Bio::NeXML::FloatNetwork
- Defined in:
- lib/bio/db/nexml/trees.rb
Instance Attribute Summary
Attributes inherited from Tree
Instance Method Summary collapse
- #add_edge(edge) ⇒ Object
- #create_edge(options = {}) ⇒ Object
-
#initialize(id, options = {}, &block) ⇒ FloatNetwork
constructor
A new instance of FloatNetwork.
Methods inherited from Network
Methods inherited from Tree
#<<, #[], #__add_edge__, #__add_node__, #add_node, #add_rootedge, #ancestors, #children, #create_node, #create_rootedge, #descendents, #each_node, #get_edge_by_id, #get_node_by_id, #has_edge?, #has_node?, #include?, #lowest_common_ancestor, #parent, #remove_edge, #remove_node, #roots, #to_xml
Methods included from Mapper
Constructor Details
#initialize(id, options = {}, &block) ⇒ FloatNetwork
Returns a new instance of FloatNetwork.
516 517 518 |
# File 'lib/bio/db/nexml/trees.rb', line 516 def initialize( id, = {}, &block ) super end |
Instance Method Details
#add_edge(edge) ⇒ Object
520 521 522 523 |
# File 'lib/bio/db/nexml/trees.rb', line 520 def add_edge( edge ) edge.length = edge.length.to_f super end |