alibaba / alibaba/GraphScope

Support getting nodes number and edge number methods for Graph.

Open
#1,162 4 comments 2 reactions 1 assignee Claimed by @siyuan0322 View on GitHub
component:python enhancement
Dominant language
C++
Stars
3.6k
Forks
468
Avg merge
29m
Merged PRs (30d)
1

Description

Add the following methods for `Graph`:
```python

def number_of_nodes(label=None):
"""Return the number of nodes under a specified label.
If label is None, then return the number of nodes of the whole graph.
"""
pass

def number_of_edges(label=None):
"""Return the number of nodes under a specified label.
If label is None, then return the number of edges of the whole graph.
"""
pass

```

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.