Re: [Boost-bugs] [Boost C++ Libraries] #7016: "graphml" value for the "for" attribute of a key shouldn't throw an exception

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7016: "graphml" value for the "for" attribute of a key shouldn't throw an exception
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-16 08:51:23


#7016: "graphml" value for the "for" attribute of a key shouldn't throw an
exception
-----------------------------------------------------------------+----------
  Reporter: Guillaume Ansanay-Alex <guillaume.ansanay@…> | Owner: jewillco
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: graph
   Version: Boost 1.49.0 | Severity: Problem
Resolution: | Keywords:
-----------------------------------------------------------------+----------

Comment (by Will Plano):

 I've just come across this defect, also while trying to parse a yEd file.

 According to the documentation at
 graphml.graphdrawing.org/specification/schema_element.xsd.htm the
 for="graphml" key attribute is for data associated with "the whole
 collection of graphs described by the content of <graphml>"
 Since read_graphml only deals with a single graph in the file, I beleive
 it is correct to silently ignore this section.

 As for how yEd uses it, it looks like it's for shared resources within the
 file...

 {{{#!xml
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 ...
 snip schema definitions for spam filter
 ...
   <!--Created by yFiles for Java 2.10-->
   <key for="graphml" id="d0" yfiles.type="resources"/>
 ...
 snip
 ...
   <data key="d0">
     <y:Resources/>
   </data>
 </graphml>
 }}}

 see the attached patch on the duplicate ticket 7155

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7016#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC