Opened 12 years ago

Closed 12 years ago

#5121 closed Bugs (invalid)

planar_face_traversal fails miserably on a planar, 3-connected graph

Reported by: julian.pfeifle@… Owned by: Andrew Sutton
Milestone: To Be Determined Component: graph
Version: Boost 1.45.0 Severity: Showstopper
Keywords: Cc:

Description

Input is the graph of a cube with a triangular prism attached. Output of the traversal is bizarre.

Attachments (2)

planar_face_traversal_bug.cc (2.5 KB ) - added by julian.pfeifle@… 12 years ago.
minimal .cc program to reproduce the bug
planar_face_traversal_nab.cc (2.6 KB ) - added by expaler 12 years ago.
Modified program that properly initializes the edge index map.

Download all attachments as: .zip

Change History (4)

by julian.pfeifle@…, 12 years ago

minimal .cc program to reproduce the bug

by expaler, 12 years ago

Modified program that properly initializes the edge index map.

comment:1 by expaler, 12 years ago

The algorithm requires an edge index map that already associates edges with distinct integers. Simply defining an internal edge index map in the adjacency list type is not enough. You must update the edge index map as you add edges to the graph. The planar_face_traversal_nab.cc file shows the fix to your program. The output is now:

New face: 1 0 8 9 visitor done. New face: 0 1 7 6 visitor done. New face: 3 2 4 visitor done. New face: 2 3 6 5 visitor done. New face: 4 2 5 7 visitor done. New face: 3 4 9 8 visitor done. New face: 0 6 3 8 visitor done. New face: 5 6 7 visitor done. New face: 7 1 9 4 visitor done.

comment:2 by expaler, 12 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.