swh.graph.luigi.utils module#
- swh.graph.luigi.utils.estimate_node_count(local_graph_path: Path, graph_name: str, object_types: str) int[source]#
- Returns the number of nodes of the given types (in the ‘cnt,dir,rev,rel,snp,ori’ format) in the graph. - This is meant to estimate RAM usage, and will return an overapproximation if the actual number of nodes is not available yet.