Extended graph walk from 2 nodes to 5