From: Jean Privat Date: Fri, 30 Dec 2016 20:27:32 +0000 (-0500) Subject: Merge: lib/graph: Fix `to_dot` X-Git-Url: http://nitlanguage.org Merge: lib/graph: Fix `to_dot` The `Graph::to_dot` function seldom produced bad dot when used on objects with special formatting in their `to_s` method. This PR changes that by overriding the ID of a node by an Int. There is still the concern that the new implementation might explode when used on a very large graph, there might be a better way to generate it or to escape the node's ids, but I can't find another one at the moment. Poke @ablondin, this might interest you Pull-Request: #2349 Reviewed-by: Alexandre Blondin Massé --- 0c1547a7cbc25ac7b895c08fb81ce3ec82ae6fbf