Skip to content

stitch_neurons fails with nat 1.9 #36

@jefferis

Description

@jefferis

There seems to be a problem with igraph::union when nodes have names.

1: expect_known_value(stitch_neurons(test_neurons), file = "testdata/stitch_neurons_ref.rds") at /Users/jefferis/dev/R/elmr/tests/testthat/test-stitch_neuron.R:9
2: quasi_label(enquo(object), label)
3: eval_bare(get_expr(quo), get_env(quo))
4: stitch_neurons(test_neurons)
5: stitch_neuron(x[[1]], x[[2]]) at /Users/jefferis/dev/R/elmr/R/stitch_neuron.R:95
6: as.ngraph(ag + bg) at /Users/jefferis/dev/R/elmr/R/stitch_neuron.R:37
7: `+.igraph`(ag, bg)
8: union(e1, e2)
9: union.igraph(e1, e2)
10: .igraph.graph.union.or.intersection("union", ..., byname = byname, keep.all.vertices = TRUE)
11: lapply(graphs, function(g) {
       g <- g + setdiff(uninames, V(g)$name)
       permute(g, match(V(g)$name, uninames))
   })
12: FUN(X[[i]], ...)
13: `+.igraph`(g, setdiff(uninames, V(g)$name))
14: stop("Cannot add unknown type to igraph graph")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions