path problems in networks