Boost C++ Libraries: Ticket #277: [BGL] Asymmetry between read_graphviz() and write_graphviz() https://svn.boost.org/trac10/ticket/277 <pre class="wiki">During some experiments with the BGL-GraphViz interface, I observed a significant asymmetry between a given DOT graph input with boost::read_graphviz() and output with boost::write_graphviz() (without changing any attributes). Given the input DOT file &lt;metro.dot&gt; (which is, of course, much longer with the full set of information), the elementary BGL program &lt;metro.cxx&gt; transforms this into the output DOT file &lt;metro_boost.dot&gt; (the three files are attached to this submission). It seems that somewhere on the way, the graph and node (and edge) attributes get clobbered. Note that even the graph name "metro" gets replaced by the name of the (last) subgraph "ligne_1", and /all/ node attributes get mixed up. This seems to be somewhat similar to the recent edge-related problem posted by Hideaki Hiraki to the boost-users list. I have not (yet) tried to mess with the graphviz parser code, so I am asking here for help. Thanks. Greetings, Andreas &lt;andreas dot scherer at rb-its dot de&gt; </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/277 Trac 1.4.3 Douglas Gregor Thu, 09 Sep 2004 14:11:04 GMT <link>https://svn.boost.org/trac10/ticket/277#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/277#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=249098 This is indeed a big problem, and not one that is trivially solved. I expect we'll need a complete rewrite of the graphviz parser at some point to deal with this. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Douglas Gregor</dc:creator> <pubDate>Mon, 14 Mar 2005 15:57:38 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/277#comment:2 https://svn.boost.org/trac10/ticket/277#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=249098 The CVS version of the BGL-GraphViz interface now contains a new GraphViz parser (based on Spirit) that can retain all attributes when parsing a graph, along with a writer that can reproduce those attributes. </pre> Ticket nobody Wed, 23 Mar 2005 21:04:26 GMT <link>https://svn.boost.org/trac10/ticket/277#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/277#comment:3</guid> <description> <pre class="wiki">Logged In: NO Great work! The new BGL-GraphViz interface works absolutely fine on my "Metro de Paris" graph, so I can re-start with this pet project. Many thanks to all involved! &lt;andreas_freenet at freenet dot de &gt; </pre> </description> <category>Ticket</category> </item> </channel> </rss>