class Bio::NeXML::Network
Public Class Methods
new( id, options = {}, &block )
click to toggle source
Calls superclass method
Bio::NeXML::Tree::new
# File lib/bio/db/nexml/trees.rb, line 478 def initialize( id, options = {}, &block ) super end
Public Instance Methods
to_xml()
click to toggle source
# File lib/bio/db/nexml/trees.rb, line 482 def to_xml node = @@writer.create_node( "network", @@writer.attributes( self, :id, :'xsi:type', :label ) ) self.each_node do |n| node << n.to_xml end self.each_edge do |edge| node << edge.to_xml end node end