Skip to content

Conversation

maelle
Copy link
Contributor

@maelle maelle commented Sep 1, 2025

part of work on "next" branch

maelle and others added 2 commits September 2, 2025 10:29
Co-authored-by: Szabolcs Horvát <[email protected]>
@maelle
Copy link
Contributor Author

maelle commented Sep 2, 2025

Thank you @szhorvat, this is very helpful!

return result;
}

SEXP R_igraph_incident_edges(SEXP pgraph, SEXP pe, SEXP pmode) {
Copy link
Contributor Author

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?!

Copy link
Contributor Author

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 😅

Copy link
Member

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) {
Copy link
Member

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.


igraph_incident:
IGNORE: RR, RC
DEPS: vid ON graph
Copy link
Contributor Author

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maelle
Copy link
Contributor Author

maelle commented Sep 8, 2025

still getting error though, clearly I didn't get the changes in R/interface.R right.

res <- lapply(res, unsafe_create_es, graph = graph, es = E(graph))
}

if (is_named(graph)) {
Copy link
Contributor Author

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

Copy link
Contributor Author

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.

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

Successfully merging this pull request may close these issues.

2 participants