Opened 13 years ago

Closed 13 years ago

#3521 closed Feature Requests (fixed)

edge iterator constructor + add_edge (with weight) does not work with adjacency_matrix

Reported by: Raymond Wan <r.wan@…> Owned by: Andrew Sutton
Milestone: Boost 1.41.0 Component: graph
Version: Boost 1.40.0 Severity: Problem
Keywords: Cc:

Description

Hi all,

I am not sure if this is a "bug" or a "feature request"; it depends whether or not this was intended for adjacency_matrix. With adjacency_matrix, using the edge iterator constructor or add_edge (four arguments; with edge weights) gives compiling errors.

I've attached a small example that demonstrates the problem. It compiles now using adjacency_list; but if the comment is moved then the compiler errors using adjacency_matrix will show up.

In a message posted by Andrew Sutton, he said the constructor may not exist -- I am not sure if this is intended or a bug:

http://article.gmane.org/gmane.comp.lib.boost.user/52205/

Thank you!

Ray

Attachments (1)

sample.cpp (1.3 KB ) - added by Raymond Wan <r.wan@…> 13 years ago.
Sample source code which demonstrates the problem.

Download all attachments as: .zip

Change History (3)

by Raymond Wan <r.wan@…>, 13 years ago

Attachment: sample.cpp added

Sample source code which demonstrates the problem.

comment:1 by Steven Watanabe, 13 years ago

Component: Nonegraph
Owner: set to Andrew Sutton

comment:2 by Jeremiah Willcock, 13 years ago

Resolution: fixed
Status: newclosed

(In [57913]) Loosened up what can be passed as an edge property to add_edge(); fixes #3521

Note: See TracTickets for help on using tickets.