-
Notifications
You must be signed in to change notification settings - Fork 21
[master < E-add-neighbors] Add docs for neighbors module #998
Conversation
mage/query-modules/cpp/neighbors.md
Outdated
| - `node: Node` ➡ node whose neighborhood is being analyzed | ||
| - `rel_type: List[string]` ➡ list of relationship types to travel through; if empty, it is possible to travel through all types of relationships | ||
| - `distance: int` ➡ number of hops between nodes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - `node: Node` ➡ node whose neighborhood is being analyzed | |
| - `rel_type: List[string]` ➡ list of relationship types to travel through; if empty, it is possible to travel through all types of relationships | |
| - `distance: int` ➡ number of hops between nodes | |
| - `node: Node` ➡ node whose neighborhood is being analyzed. | |
| - `rel_type: List[string]` ➡ list of relationship types to travel through; if empty, it is possible to travel through all types of relationships. | |
| - `distance: int` ➡ number of hops between nodes. |
mage/query-modules/cpp/neighbors.md
Outdated
|
|
||
| #### Output: | ||
|
|
||
| - `nodes: Node` ➡ nodes at a specific distance from a given node |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - `nodes: Node` ➡ nodes at a specific distance from a given node | |
| - `nodes: Node` ➡ nodes at a specific distance from a given node. |
mage/query-modules/cpp/neighbors.md
Outdated
| - `node: Node` ➡ node whose neighborhood is being analyzed | ||
| - `rel_type: List[string]` ➡ list of relationship types to travel through; if empty, it is possible to travel through all types of relationships | ||
| - `distance: int` ➡ maximum number of hops between nodes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - `node: Node` ➡ node whose neighborhood is being analyzed | |
| - `rel_type: List[string]` ➡ list of relationship types to travel through; if empty, it is possible to travel through all types of relationships | |
| - `distance: int` ➡ maximum number of hops between nodes | |
| - `node: Node` ➡ node whose neighborhood is being analyzed. | |
| - `rel_type: List[string]` ➡ list of relationship types to travel through; if empty, it is possible to travel through all types of relationships. | |
| - `distance: int` ➡ maximum number of hops between nodes. |
mage/query-modules/cpp/neighbors.md
Outdated
|
|
||
| #### Output: | ||
|
|
||
| - `nodes: List[Node]` ➡ list of nodes at a specific distance from a given node, starting from distance 1 up to a provided distance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - `nodes: List[Node]` ➡ list of nodes at a specific distance from a given node, starting from distance 1 up to a provided distance | |
| - `nodes: List[Node]` ➡ list of nodes at a specific distance from a given node, starting from distance 1 up to a provided distance. |
mage/query-modules/cpp/neighbors.md
Outdated
|
|
||
| #### Input: | ||
|
|
||
| - `node: Node` ➡ node whose neighborhood is being analyzed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - `node: Node` ➡ node whose neighborhood is being analyzed. | |
| - `node: Node` ➡ node for which neighborhood is being analyzed. |
nodes are not persons
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please change that across all of your prs?
mage/query-modules/cpp/neighbors.md
Outdated
|
|
||
| ### `by_hop(node, rel_type, distance)` | ||
|
|
||
| Returns nodes that are at every distance (up to a specified number) from a given node, considering only the relationships of a specified type. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Returns nodes that are at every distance (up to a specified number) from a given node, considering only the relationships of a specified type. | |
| Returns nodes that are at any or up to a specific distance from a given node, considering only the relationships of a specified type. |
vpavicic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the whose and 1 sentence
Description
Add documentation for neighbors module.
Pull request type
Please delete options that are not relevant and check the ones that are.
Related PRs and issues
PR this doc page is related to: memgraph/mage#308
Closes (link to issue):
Checklist: