(G, source, target_nodes, cutoff)
| 867 | def 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] |
no test coverage detected