get_paths function

Get paths from a specified node in a directed graph