I have a collection of lists that each represent a path on a graph:
list1 = [1,2,3,6] # directed edge from 1->2, 2->3, 3->6 list2 = [8,3,5,6] list3 =