can work out paths between nodes