before switching to boost graph library