Changeset View
Changeset View
Standalone View
Standalone View
swh/graph/cli.py
Show First 20 Lines • Show All 170 Lines • ▼ Show 20 Lines | def compress(ctx, input_dataset, output_directory, graph_name, steps): | ||||
Output: a directory containing a WebGraph compressed graph | Output: a directory containing a WebGraph compressed graph | ||||
Compression steps are: (1) extract_nodes, (2) mph, (3) bv, (4) bfs, (5) | Compression steps are: (1) extract_nodes, (2) mph, (3) bv, (4) bfs, (5) | ||||
permute_bfs, (6) transpose_bfs, (7) simplify, (8) llp, (9) permute_llp, | permute_bfs, (6) transpose_bfs, (7) simplify, (8) llp, (9) permute_llp, | ||||
(10) obl, (11) compose_orders, (12) stats, (13) transpose, (14) | (10) obl, (11) compose_orders, (12) stats, (13) transpose, (14) | ||||
transpose_obl, (15) maps, (16) extract_persons, (17) mph_persons, (18) | transpose_obl, (15) maps, (16) extract_persons, (17) mph_persons, (18) | ||||
node_properties, (19) mph_labels, (20) fcl_labels, (21) edge_labels, (22) | node_properties, (19) mph_labels, (20) fcl_labels, (21) edge_labels, (22) | ||||
clean_tmp. | edge_labels_obl, (23) edge_labels_transpose_obl, (24) clean_tmp. | ||||
Compression steps can be selected by name or number using --steps, | Compression steps can be selected by name or number using --steps, | ||||
separating them with commas; step ranges (e.g., 3-9, 6-, etc.) are also | separating them with commas; step ranges (e.g., 3-9, 6-, etc.) are also | ||||
supported. | supported. | ||||
""" | """ | ||||
from swh.graph import webgraph | from swh.graph import webgraph | ||||
try: | try: | ||||
Show All 13 Lines |