I need to read file in ML (SLMNJ) and save it in some structures. I need to read some data that points to graph declaration:
[( 1 , 2 , 13 ),( 2 , 3 , 3 ),( 2 , 4 , 8 ),( 2 , 5 , 4 ),( 3 , 1 , 5 ),( 3 , 4 , 1 ),( 4 , 6 , 5 ),( 5 , 5 , 5 ),( 6 , 4 , 6 )]
(first number: name of the node , secend number: name of connected node , third number weight for this mane (each () show one mane ) )
for expamle this is test input how to read file and which structure to save it