$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Ronald Garcia (garcia_at_[hidden])
Date: 2008-04-17 13:43:18
Hi Giuseppe,
I have looked at your code, and it appears that you are not adding a  
graph_name property map to the dynamic_properties object.  Not all  
graphs have a graph_name property, so it is necessary to use the  
property map interface to retrieve the graph name.  Take a look at  
libs/graph/test/graphviz_test.cpp, specifically the lines:
   boost::ref_property_map<graph_t*,std::string> gname(
     get_property(graph,graph_name));
   dp.property("name",gname);
Hope this helps,
ron
On Mar 25, 2008, at 10:22 AM, Giuseppe Di Guglielmo wrote:
> Dear Ronald,
> I'm using Boost Graph Library.
>
> I saw this ticket
> http://svn.boost.org/trac/boost/ticket/731
> GraphViz reader ignores graph properties.
>
> I am trying to read the graph name from a graph I loaded from a DOT  
> file,
> but the property seems to be empty. I am not sure that is related  
> to this
> ticket, anyway I hope you can help me.
>
> I attached a simple example, so it will be very fast for you to  
> compile
> (edit the Makefile to point to your Boost installation library) and  
> run it.
>
> The result probably will be, as for me
> $ ./runme.sh
> The graph name is: ''
>
> The code to retrieve the graph name is
>  57     // THE PROBLEM IS HERE!
>  58     // The get_property(efsm_stg, boost::graph_name) function  
> does not
> retrieve the graph name.
>  59     boost::graph_property<efsm::stg_t, boost::graph_name_t>::type&
> efsm_name =
>                                                get_property(efsm_stg,
> boost::graph_name);
>  60     std::cout << "The graph name is: \'" << efsm_name << "\'" <<
> std::endl;
>  61     //--
>
> Best regards,
> Giuseppe
>
>
> ---------------------------------------------------------------------- 
> ------
> Giuseppe Di Guglielmo       Dept. of Computer Science - University of
> Verona
>                                Strada le Grazie, 15 - 37134 Verona  
> - Italy
>
> Phone Office:   +39 045 8027049         Fax:    +39 045 8027068
> Phone Home:     +39 045 6152251         Mobile: +39 347 0493371
>
> WWW: http://profs.sci.univr.it/~diguglielmo
>
> email: giuseppe.diguglielmo_at_[hidden]
> email: diguglielmo_at_[hidden]          Skype: giuseppe.diguglielmo
>
> ---------------------------------------------------------------------- 
> ------
>
>
> This e-mail message is intended for the addressee(s) only and may  
> contain
> confidential and or privileged information.  If you are not the  
> intended
> recipient of this e-mail message, you should not read, copy,  
> forward or
> otherwise distribute or further disclose the information in it. If  
> you have
> received this e-mail message in error, please contact the  
> originator of this
> e-mail message via e-mail and delete all copies of this message  
> from your
> computer or network, thank you.
>
>
> <graph_name.tgz>