Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
at the moment, the only places where I saw NULL is ok according to the argument check, don't seem they'd actually work with NULL: https://github.com/search?q=repo%3Aigraph%2Frigraph+is.null%28graph%29+language%3AR&type=code&l=R |
|
IMHO we can disallow NULL for |
ensure_igraph()
This comment was marked as resolved.
This comment was marked as resolved.
|
Did my best to resolve conflicts, sorry if I messed up |
This comment was marked as resolved.
This comment was marked as resolved.
|
How about Line 709 in 7a70f0e |
R/attributes.R
Outdated
| #' @export | ||
| graph.attributes <- function(graph) { | ||
| ensure_igraph(graph) | ||
| .Call(C_R_igraph_mybracket2_copy, graph, igraph_t_idx_attr, igraph_attr_idx_graph) |
There was a problem hiding this comment.
is this ok @krlmlr? seems to come from the conflict resolution?
There was a problem hiding this comment.
I made a commit removing duplicate code
R/attributes.R
Outdated
| graph_attr_names <- function(graph) { | ||
| ensure_igraph(graph) | ||
|
|
||
| res <- .Call(C_R_igraph_mybracket2_names, graph, igraph_t_idx_attr, igraph_attr_idx_graph) |
Nice catch. Indeed the underlying Note that the spectral coarse graining functions (i.e. everything that's in this chapter were removed in igraph 0.10 due to concerns about maintainability (in other words, no one really knew from the current dev team how this piece of code works). They now live in a separate project. If we want to keep these after upgrading the C core to igraph 0.10, we need to link to both projects. |
R/operators.R
Outdated
| if (!all(sapply(graphs, is_igraph))) { | ||
| stop("Not a graph object") | ||
| } | ||
| purrr::walk(graphs, ensure_igraph) |
There was a problem hiding this comment.
example with more than one graph.
|
|
You tell me 😉 It's still not 100% clear to me how autogeneration happens but I did modify |
|
My rhetoric question is a disguised form of saying "this PR is too big"... Let's see if the tests pass and merge, it looks good otherwise. |
|
LGTM. |
|
Thanks! |
Fix #702