|
Boost Users : |
From: Chris Russell (cdr_at_[hidden])
Date: 2002-08-26 23:40:37
Just a quick mention:
A call to add_edge with u == v causes an assertion if Directed ==
undirectedS.
adjacency_list.hpp line 843:
assert( u != v ); // don't allow self-loops
^- boost_1_28_0
Avoiding the assertion is easy enough but this is inconsistent w/section
14.1.1 p.220 of the BGL book: "... Also if u and v are descriptors for the
same vertex (creating self loop) and the graph is undirected, then the edge
will not be created and the flag will be false."
Am having tons of fun - the BGL and the book are super. Thanks!
- Chris
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net