@@ -84,20 +84,20 @@ if ! [ -e $VERTICES ]; then
84
84
fi
85
85
86
86
87
- # generate offsets
87
+ # generate offsets (*.offsets and *.obl)
88
88
if ! [ -e $NAME .offsets ]; then
89
- " $WG " it.unimi.dsi.webgraph.BVGraph -O -L $NAME
89
+ " $WG " it.unimi.dsi.webgraph.BVGraph --offsets --list $NAME
90
90
echo " webgraph offsets file created"
91
91
fi
92
92
if ! [ -e $NAME -t.offsets ]; then
93
- " $WG " it.unimi.dsi.webgraph.BVGraph -O -L $NAME -t
93
+ " $WG " it.unimi.dsi.webgraph.BVGraph --offsets --list $NAME -t
94
94
echo " webgraph offsets file created (transpose of the graph)"
95
95
fi
96
96
97
97
98
98
# building `iepm` "immutable external prefix map"
99
99
# (https://dsiutils.di.unimi.it/docs/it/unimi/dsi/util/ImmutableExternalPrefixMap.html)
100
- # mapping back and forth node names to numbers
100
+ # bidirectional mapping from node names to node IDs
101
101
if [ -e $NAME .iepm ]; then
102
102
index_status
103
103
exit 0
110
110
if (set -eo pipefail;
111
111
eval $CAT_VERTICES \
112
112
| cut -f2 \
113
- | " $WG " it.unimi.dsi.util.ImmutableExternalPrefixMap -b4Ki $NAME .iepm); then
113
+ | " $WG " it.unimi.dsi.util.ImmutableExternalPrefixMap --block-size 4Ki $NAME .iepm); then
114
114
echo " immutable external prefix map successfully built: $NAME .iepm"
115
115
index_status
116
116
exit 0
@@ -129,7 +129,7 @@ if ! [ -e $NAME.mph ] || ! [ -e $NAME.fcl ]; then
129
129
zcat $VERTICES \
130
130
| cut -f2 \
131
131
| tee >( " $WG " it.unimi.dsi.sux4j.mph.GOV4Function $NAME .mph) \
132
- | " $WG " it.unimi.dsi.util.FrontCodedStringList -u -r 32 $NAME .fcl
132
+ | " $WG " it.unimi.dsi.util.FrontCodedStringList --utf8 --ratio 32 $NAME .fcl
133
133
fi
134
134
135
135
# build the `smph` file (string map perfect hash) required to
0 commit comments