Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-11-06 13:05:07


On Tue, 6 Nov 2001, Vladimir Prus wrote:
ghost> >
ghost> > As per the docs, the second graph has to be a BidirectionalGraph, so
ghost> > you need to use bidirectionS instead of directedS
ghost>
ghost> I've missed that. But... is this requirement present due to
ghost> the algorithm used or for some other reason. The graphs
ghost> which I'd like to compare are directed by definition.

The algorithm uses the in_edges() function, so it needs bidirectional. The
boost adjacency_list "bidirectional" graph is a directed graph.

ghost> > jsiek> Yes, I thought about this. I don't think the semantics can
ghost> > jsiek> change, though I will document them.
ghost> > jsiek>
ghost> > jsiek> We certainly do need a resizable-on-subscript container. Would you
ghost> > jsiek> be interested in writing one?
ghost>
ghost> Alas, I don't have quite enough time to promise writing one.
ghost> For now, we can at least discuss what precisely type of
ghost> container it should be. In particular, should iteration be
ghost> supported? GTL's node map does not support in, IIRC, and
ghost> supporting it would require skipping elements while
ghost> iterating.

Well, I think it would be enough to just support the mapping. It would not
need to fulfill any of the requirements for a Container. It would fulfill
the requirements of a property map.

----------------------------------------------------------------------
 Jeremy Siek http://php.indiana.edu/~jsiek/
 Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
 C++ Booster (http://www.boost.org) office phone: (812) 855-3608
----------------------------------------------------------------------


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk