Skip to content

Commit

Permalink
wcc_auto cannot work on string-oid graphs
Browse files Browse the repository at this point in the history
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
  • Loading branch information
sighingnow committed Jul 21, 2023
1 parent 293d7ae commit 944ac93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/graphscope/analytical/app/wcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ def wcc_opt(graph):
"""
cmake_extra_options = None
if graph.oid_type == "std::string":
logger.warning(
"WCC algorithm will output int value as component ID on graphs that has 'string' type as ID"
raise ValueError(
"The `wcc_opt()` algorithm cannot work on graphs that has 'string' type as ID, "
"use `wcc()` instead"
)
cmake_extra_options = "-DWCC_USE_GID=ON"
return AppAssets(
algo="wcc_opt", context="vertex_data", cmake_extra_options=cmake_extra_options
)(graph)
Expand Down

0 comments on commit 944ac93

Please sign in to comment.