Consistency in definition for retrieving incoming and outgoing edges/neighbours #40
Closed
general-rishkin
started this conversation in
Discussions
Replies: 1 comment
-
Converted this into issue #41 and solved this by aligning the Parameter Order for DiGraph.getInEdges with DiGraph.getOutEdges (The second variant, assigning the graph as the pipeable parameter. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For a
DiGraph
G, to retrieve the incoming neighbours of a node (say, node 1), you write:1 |> DiGraph.getInEdges G
whereas to retrieve the outgoing neighbours, you write:
G |> DiGraph.getOutEdges 1
It would be more consistent to select either:
OR
Beta Was this translation helpful? Give feedback.
All reactions