Skip to content

Commit 5ddb4c7

Browse files
refactor: make script to build vertex maps for graph exploration more verbose
1 parent be21591 commit 5ddb4c7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/script/webgraph_ranking/graph_explore_build_vertex_map.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,20 @@ if ! [ -e $VERTICES ]; then
8484
fi
8585

8686

87-
# generate offsets
87+
# generate offsets (*.offsets and *.obl)
8888
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
9090
echo "webgraph offsets file created"
9191
fi
9292
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
9494
echo "webgraph offsets file created (transpose of the graph)"
9595
fi
9696

9797

9898
# building `iepm` "immutable external prefix map"
9999
# (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
101101
if [ -e $NAME.iepm ]; then
102102
index_status
103103
exit 0
@@ -110,7 +110,7 @@ fi
110110
if (set -eo pipefail;
111111
eval $CAT_VERTICES \
112112
| 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
114114
echo "immutable external prefix map successfully built: $NAME.iepm"
115115
index_status
116116
exit 0
@@ -129,7 +129,7 @@ if ! [ -e $NAME.mph ] || ! [ -e $NAME.fcl ]; then
129129
zcat $VERTICES \
130130
| cut -f2 \
131131
| 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
133133
fi
134134

135135
# build the `smph` file (string map perfect hash) required to

0 commit comments

Comments
 (0)