The following request results in 5 examples.
str = getKreuzerSkarke(5, 43, Limit=>5) |
L = parseKS str; |
#L |
netList L |
Let’s get the one at index 3 (fourth one on the list, since lists are 0-based)
eg = L_3; |
header = eg_0 |
A = matrixFromString eg_1 |
The input string can also be a string containing examples from the Kreuzer-Skarke list. In this case the ’header’ line should start in the first character of the line, and the matrix part should be indented. Blank lines are ignored.
str = "4 5 M:18 5 N:22 5 H:23,17 [12]
1 0 1 1 -4
0 1 0 0 -1
0 0 3 0 -3
0 0 0 3 -3
" |
parseKS str |