-
Notifications
You must be signed in to change notification settings - Fork 37
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
ordered descendant and ancestors improvements #6
Comments
@sebogh do you have time for it or suggestions how the best to implement this? |
if i'm write pr, can you merge it ? |
Please elaborate (there is no order among the descendants of a DAG). |
for example func OrderedDescendants returns in ordered descendants, but if i have two vertex that depends on the same another vertex it order is the same, so it can be executed in parallel. |
gentle ping.. |
@vtolstov I am fooling around with DAGs and what I would want is an @sebogh Even though not needed for a DAG, do you reckon if I implement such a function you are willing to merge it? |
Hey, didn't look into it for some time. Sorry. @vtolstov, probably it is me but I still don't understand what order you talk about. Is it "the time when a certain child was added"? If so, no! The DAG concept does not have such property - there is no ordering in direct children. However, you may easily add any property to (all) your vertices that allows you to order them (including e.g. a timestamp). And this seems to be where @ChristianKniep joins in. Yes, one could extend the implementation I'm certainly happy to approve PRs. |
@vtolstov, @ChristianKniep the latest master (354d4ae) implements Lines 668 to 675 in 354d4ae
and: Lines 655 to 662 in 354d4ae
@vtolstov does that help in any way? |
yes i mean something like this |
mostly my question about this case
when i'm traverse deep down in graph i want to know that yyyyy and zzzzz belongs to single xxxxx, and in my case (i'm execute this steps via grpc calls) i can call it in parallel (don't wait for completion, use WaitGroup) and after both of them completed go to end vertex |
@ChristianKniep do you have any interest to add call to have []interface{} that you mean? |
For some dags some vertices can have the same order. For example
ProjectCreate/NetworkCreate/ContactCreate can depends on AccountCreate, so first is Account create, but other in the same order. Does it possible to return [][]Vertex from Descendants and Ancestors ?
This can be useful to parallel processing some vertices when it can be on the same order.
The text was updated successfully, but these errors were encountered: