We get a segmentation fault in add_edge when dealing with an uninitialized variable. I don't yet know the algorithm well enough to suggest a solution that makes things easier later. r~