MCPcopy Create free account
hub / github.com/alibaba/GraphScope / _all_simple_paths

Function _all_simple_paths

python/graphscope/nx/algorithms/builtin.py:869–873  ·  view source on GitHub ↗
(G, source, target_nodes, cutoff)

Source from the content-addressed store, hash-verified

867def get_all_simple_paths(G, source, target_nodes, cutoff):
868 @project_to_simple
869 def _all_simple_paths(G, source, target_nodes, cutoff):
870 targets_json = json.dumps(target_nodes)
871 return AppAssets(algo="all_simple_paths", context="tensor")(
872 G, source, targets_json, cutoff
873 )
874
875 if not isinstance(target_nodes, list):
876 target_nodes = [target_nodes]

Callers 1

get_all_simple_pathsFunction · 0.85

Calls 1

AppAssetsClass · 0.90

Tested by

no test coverage detected