using python I want to create a multi-linked list that each node on the main body that can have two pointers. one to the next node on the main body and one to a branch-linked list.
my input is a text file that has the main body elements at the start of each line at its branches at that line with a space in between.
example:
10 15 58
13 18 25 20
14
12 55
now I want a linked list that has 10->13->14->12 as its main body and 10 for example has 10->15->58 as its branch linked list.