Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

[master < cpp-api] Write docs for In/Out Degree in Cpp API #1032

Merged
merged 2 commits into from
Sep 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,8 @@ Node(Node &&other) noexcept
| `SetProperty` | Set value of node's property |
| `GetProperty` | Get value of node's property |
| `RemoveProperty` | Removes the node's property |
| `InDegree` | Get the in degree of the node. |
| `OutDegree` | Get the out degree of the node. |
| `ToString` | Returns the node's string representation. |

##### Id
Expand Down Expand Up @@ -735,6 +737,21 @@ Removes a label from a node.
void RemoveLabel(const std::string_view label)
```

##### InDegree

Returns the in degree of a node.

```cpp
size_t InDegree() const
```

##### OutDegree

Returns the out degree of a node.

```cpp
size_t OutDegree() const
```

##### ToString

Expand All @@ -743,6 +760,7 @@ Returns the node's string representation, which has this format: "(id: `node_id`
```cpp
const std::string ToString() const
```

#### Operators

| Name | Description |
Expand Down
Loading