glejeune / Ruby-Graphviz

[MIRROR] Ruby interface to the GraphViz graphing tool
https://gitlab.com/glejeune/ruby-graphviz
Other
609 stars 116 forks source link

Can't convert Fixnum to String (TypeError) #59

Closed cbandy closed 11 years ago

cbandy commented 11 years ago

Adding an edge with a numeric label fails with the following error:

ruby-graphviz-1.0.8/lib/graphviz/types/lbl_string.rb:9:inmatch': can't convert Fixnum to String (TypeError)`

The last line causes the error in irb:

graph = GraphViz.digraph(:G)
a = graph.add_nodes('a')
b = graph.add_nodes('b')
graph.add_edges(a, b, label: 5)