Opened 10 years ago
Closed 10 years ago
#7226 closed Bugs (fixed)
relax() in relax.hpp can return false even if predecessor map is changed
Reported by: | Owned by: | Jeremiah Willcock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | graph |
Version: | Boost 1.51.0 | Severity: | Problem |
Keywords: | relax, floating point precision | Cc: |
Description
The relax function in relax.hpp checks whether the distance of an edge really is reduced after relaxation and only returns true if that is the case. (the alternative possibility is that the expected reduction in distance does not take place due to floating point precision).
However, the function updates the predecessor map in any case. It is therefore possible that the predecessor map is changed while the relax function returns false. I suppose this is a bug, even though I did not cause me any trouble.
Attachments (1)
Change History (2)
by , 10 years ago
Attachment: | relax.patch added |
---|
comment:1 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
patch