Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] Successors and Predecessors methods out of the box #75

Open
Tochemey opened this issue Jul 27, 2024 · 1 comment
Open

[Feat] Successors and Predecessors methods out of the box #75

Tochemey opened this issue Jul 27, 2024 · 1 comment

Comments

@Tochemey
Copy link
Contributor

Tochemey commented Jul 27, 2024

We all know that in a dag the edges are directed: that is, they have a direction, proceeding from a source vertex to a destination vertex. The destination vertex is a successor of the source, and the the source is a predecessor of the destination. So given a vertex, I think it will be nice to know all its successors and predecessors. This is the template for both functions:

  • Successors(ctx context.Context, source Vertex) []Vertex
  • Predecessors(ctx context.Context, source Vertex) []Vertex

@hmdsefi I hope this help.

@hmdsefi
Copy link
Owner

hmdsefi commented Jul 29, 2024

@Tochemey thank you for creating the issue. Could you please add a description? it would be great if you add method names, inputs, and expected output with example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants