glejeune / Ruby-Graphviz

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

Invalid value generated for graph bb field #149

Open brianpartridge opened 3 years ago

brianpartridge commented 3 years ago

Describe the bug ruby-graphviz seems to generate invalid dot formatted numbers for bounding boxes of 6 digits or more. This may be an issue with how all numbers get formatted across all dot output.

Detailed Background In the cocoapods-dependencies plugin we use ruby-graphviz to output a module dependency graph like so. In my very large project that I'm using this plugin with, the output contains dot file contains graph [bb="0,0,1.0029e+05,1620"];. Later, I send this dot file through gvpr and another script using ruby-graphviz, but when I do so I get the following error: Invalid value0,0,1.0029e+05,1620for attributebb: Invalid rect value

To Reproduce See detailed background above, I don't have a sharable reproduction case, but it seems to happen in graphs with 100s of nodes and thousands of edges.

Expected behavior Output dot file should contain numbers that aren't formatted in scientific notation. Ex graph [bb="0,0,100290,1620"];

Environment (please complete the following information):