Use a link list for ordinary networks where each row is an edge. This is the simplest and most portable input format.
Each row is source target [weight]. The optional weight must be non-negative. Missing weights default to 1.
If a file has no recognized header, Infomap treats it as a link list.
# A hierarchical network of nine triangles
# Figure 1
# source target weight
1 2
1 3
2 3
4 5
4 6
5 6
7 8
7 9
8 9
2 4
3 7
6 8
10 11
10 12
11 12
13 14
13 15
14 15
16 17
16 18
17 18
11 13
12 16
15 17
19 20
19 21
20 21
22 23
22 24
23 24
25 26
25 27
26 27
20 22
21 25
24 26
5 10 0.8
9 19 0.8
18 23 0.8