alibaba / alibaba/GraphScope

[BUG] crash when using `nx.diameter()`

Open
#3,719 0 comments 0 reactions 1 assignee Claimed by @acezen View on GitHub
Dominant language
C++
Stars
3.6k
Forks
468
Avg merge
29m
Merged PRs (30d)
1

Description

**Describe the bug**
The program crash when executing `nx.diameter()` with GraphScope (NetworkX worked well)

**To Reproduce**
I have used `nx.connected_components(G)` to make sure `C` is connected
```python
for C in (G.subgraph(c).copy() for c in nx.connected_components(G)):
print(nx.diameter(C))
```
did I miss some rules?
p.s. `nx.single_source_shortest_path_length()` worked well

**Screenshots**
![image](https://github.com/alibaba/GraphScope/assets/54880260/5fe3c64d-6409-4588-8151-225ebb4b8fa8)
![image](https://github.com/alibaba/GraphScope/assets/54880260/23284866-70e3-4279-a3f2-25848310d581)
![image](https://github.com/alibaba/GraphScope/assets/54880260/77aeec04-cc9b-433c-8a41-647627d8787e)
![image](https://github.com/alibaba/GraphScope/assets/54880260/0aa93901-8a05-4aab-802f-43a64930faff)
![image](https://github.com/alibaba/GraphScope/assets/54880260/5fadcd5c-91fd-459d-a74c-4804a0c39ab5)

**Environment (please complete the following information):**
- GraphScope version: 0.27.0
- OS: Linux
- Version: Red Hat 4.8.5-44

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.