-
-
Notifications
You must be signed in to change notification settings - Fork 206
chore: autogenerate igraph_incident()
#2100
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Szabolcs Horvát <[email protected]>
Thank you @szhorvat, this is very helpful! |
return result; | ||
} | ||
|
||
SEXP R_igraph_incident_edges(SEXP pgraph, SEXP pe, SEXP pmode) { |
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.
it seems I edited this wrong?!
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.
@szhorvat tagging you in case you see what curly brace I forgot 😅
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.
You only remove the first line of a function above.
return result; | ||
} | ||
|
||
SEXP R_igraph_incident(SEXP graph, SEXP pvid, SEXP pmode) { |
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 problem is with this partial removal, not below.
Co-authored-by: Szabolcs Horvát <[email protected]>
tools/stimulus/functions-R.yaml
Outdated
|
||
igraph_incident: | ||
IGNORE: RR, RC | ||
DEPS: vid ON graph |
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.
@szhorvat is this a DEPS that should be committed to the C library instead of here?
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.
still getting error though, clearly I didn't get the changes in |
res <- lapply(res, unsafe_create_es, graph = graph, es = E(graph)) | ||
} | ||
|
||
if (is_named(graph)) { |
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.
I need to move this into the yaml thus into aaa-auto.R
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.
@szhorvat I tried my best by looking at the YAML of functions with these lines:
if (igraph_opt("add.vertex.names") && is_named(graph)) {
names(res) <- vertex_attr(graph, "name", vids)
}
but didn't manage to get it right.
part of work on "next" branch