Hi, I'd like to clarify a point about the graph properties accessed through a subgraph. According to the documentation of get(PropertyTag, subgraph& g): vertex and edge properties are shared by all subgraphs, so changes to a property through a local vertex descriptor for one subgraph will change the property for the global vertex descriptor, and therefore for all other subgraphs (c.f. boost-1.30.2/libs/graph/doc/subgraph.html). Here, I'm sending you a small program inspired by the boost-1.30.2/libs/graph/example/subgraph.cpp example.
From its behavior, it seems that:
1) A property value is not shared between the global descriptor and its corresponding local descriptors. 2) we need to initialize property values for each of the subgraphs. For example, if I set a name "A" for the global vertex descriptor A, that property is not seen through the corresponding local vertex descriptors. Is this a case of misuse or is it a bug? __________________________________________________________ Lèche-vitrine ou lèche-écran ? magasinage.yahoo.ca
Hi Hugues, Subgraph.mcp is a CodeWarrior project file? I'm sorry but I don't have CodeWarrior. Can you send a tar ball or even better, a text file. Cheers, Jeremy On Jan 30, 2004, at 12:59 PM, Hugues Joly wrote:
Hi, I'd like to clarify a point about the graph properties accessed through a subgraph. According to the documentation of get(PropertyTag, subgraph& g): vertex and edge properties are shared by all subgraphs, so changes to a property through a local vertex descriptor for one subgraph will change the property for the global vertex descriptor, and therefore for all other subgraphs (c.f. boost-1.30.2/libs/graph/doc/subgraph.html).
Here, I'm sending you a small program inspired by the boost-1.30.2/libs/graph/example/subgraph.cpp example.
From its behavior, it seems that:
1) A property value is not shared between the global descriptor and its corresponding local descriptors.
2) we need to initialize property values for each of the subgraphs. For example, if I set a name "A" for the global vertex descriptor A, that property is not seen through the corresponding local vertex descriptors.
Is this a case of misuse or is it a bug?
__________________________________________________________ Lèche-vitrine ou lèche-écran ? magasinage.yahoo.ca
______________________________________ _________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________
Jeremy Siek
Oops,
sorry, I meant to send you a cpp file. Consider
that my previous email was referring to this
attachement.
Thanks in advance.
--- Jeremy Siek
Subgraph.mcp is a CodeWarrior project file? I'm sorry but I don't have CodeWarrior. Can you send a tar ball or even better, a text file.
Cheers, Jeremy
On Jan 30, 2004, at 12:59 PM, Hugues Joly wrote:
Hi, I'd like to clarify a point about the graph properties accessed through a subgraph. According to the documentation of get(PropertyTag, subgraph& g): vertex and edge properties are shared by all subgraphs, so changes to a property through a local vertex descriptor for one subgraph will change the property for the global vertex descriptor, and therefore for all other subgraphs (c.f. boost-1.30.2/libs/graph/doc/subgraph.html).
Here, I'm sending you a small program inspired by the boost-1.30.2/libs/graph/example/subgraph.cpp example.
From its behavior, it seems that:
1) A property value is not shared between the global descriptor and its corresponding local descriptors.
2) we need to initialize property values for each of the subgraphs. For example, if I set a name "A" for the global vertex descriptor A, that property is not seen through the corresponding local vertex descriptors.
Is this a case of misuse or is it a bug?
__________________________________________________________
Lèche-vitrine ou lèche-écran ?
magasinage.yahoo.ca
_________ Boost-users mailing list Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Jeremy Siek
http://www.osl.iu.edu.edu/~jsiek Ph.D. Student, Indiana University Bloomington C++ Booster (http://www.boost.org) Office phone: (812) 856-1820 _______________________________________________ _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
__________________________________________________________
Lèche-vitrine ou lèche-écran ?
magasinage.yahoo.ca
//=======================================================================
// Copyright 2001 University of Notre Dame.
// Author: Jeremy G. Siek
//
// This file is part of the Boost Graph Library
//
// You should have received a copy of the License Agreement for the
// Boost Graph Library along with the software; see the file LICENSE.
// If not, contact Office of Research, University of Notre Dame, Notre
// Dame, IN 46556.
//
// Permission to modify the code and to distribute modified code is
// granted, provided the text of this NOTICE is retained, a notice that
// the code was modified is included with the above COPYRIGHT NOTICE and
// with the COPYRIGHT NOTICE in the LICENSE file, and that the LICENSE
// file is distributed with the modified code.
//
// LICENSOR MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED.
// By way of example, but not limitation, Licensor MAKES NO
// REPRESENTATIONS OR WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY
// PARTICULAR PURPOSE OR THAT THE USE OF THE LICENSED SOFTWARE COMPONENTS
// OR DOCUMENTATION WILL NOT INFRINGE ANY PATENTS, COPYRIGHTS, TRADEMARKS
// OR OTHER RIGHTS.
//=======================================================================
/*
Sample output:
G0:
0 --> 1
1 --> 2 3
2 --> 5
3 -->
4 --> 1 5
5 --> 3
0(0,1) 1(1,2) 2(1,3) 6(2,5) 3(4,1) 4(4,5) 5(5,3)
G1:
2 --> 5
4 --> 5
5 -->
6(2,5) 4(4,5)
G2:
0 --> 1
1 -->
0(0,1)
*/
#include
participants (2)
-
Hugues Joly
-
Jeremy Siek