lib/graphviz/graphml.rb in ruby-graphviz-1.0.1 vs lib/graphviz/graphml.rb in ruby-graphviz-1.0.2
- old
+ new
@@ -35,13 +35,11 @@
GTYPE = {
'directed' => :digraph,
'undirected' => :graph
}
- #
# Create a new GraphViz object from a GraphML file of string
- #
def initialize( file_or_str )
data = ((File.file?( file_or_str )) ? File::new(file_or_str) : file_or_str)
@xmlDoc = REXML::Document::new( data )
@attributs = {
:nodes => {},
@@ -219,6 +217,6 @@
@current_graph.add_edge( s, t ) unless s == t
}
}
end
end
-end
\ No newline at end of file
+end