Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions R/topology.R
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ graph.subisomorphic.lad <- function(pattern, target, domains = NULL,
all.maps <- as.logical(all.maps)
if (!is.null(domains)) {
if (!is.list(domains)) {
stop("`domains' must be a list of vertex vectors from `target'")
cli::cli_abort("{.arg domains} must be a list of vertex vectors from {.arg target}.")
}
if (length(domains) != vcount(pattern)) {
stop("`domains' length and `pattern' number of vertices must match")
cli::cli_abort("{.arg domains} length and {.arg pattern} number of vertices must match.")
}
domains <- lapply(domains, function(x) as_igraph_vs(target, x) - 1)
}
Expand Down
8 changes: 0 additions & 8 deletions tests/testthat/test-bug-1032819.R

This file was deleted.

6 changes: 0 additions & 6 deletions tests/testthat/test-bug-154.R

This file was deleted.

19 changes: 0 additions & 19 deletions tests/testthat/test-bug-501-rectangles.R

This file was deleted.

18 changes: 0 additions & 18 deletions tests/testthat/test-canonical.permutation.R

This file was deleted.

11 changes: 0 additions & 11 deletions tests/testthat/test-graph.isoclass.R

This file was deleted.

56 changes: 0 additions & 56 deletions tests/testthat/test-graph.subisomorphic.lad.R

This file was deleted.

18 changes: 0 additions & 18 deletions tests/testthat/test-graph.subisomorphic.vf2.R

This file was deleted.

148 changes: 0 additions & 148 deletions tests/testthat/test-isomorphism.R

This file was deleted.

Empty file removed tests/testthat/test-notable.R
Empty file.
20 changes: 20 additions & 0 deletions tests/testthat/test-plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,23 @@ test_that("label colors are correct when loops are present", {
}
)
})

test_that("Edges stop at outside of rectangle node", {
skip_if_not_installed("vdiffr")

rectangle_edges <- function() {
g <- make_graph(c(1, 2, 1, 4, 2, 1, 2, 5, 2, 3, 4, 1, 5, 2, 3, 2))
layout <- cbind(
c(-2.01, -1.16, -1.24, -2.74, -0.13),
c(1.27, 2.1, 3.14, 0.56, 2.01)
)
plot(g,
vertex.size = 30,
vertex.color = rgb(0.1, 0.7, 0.8, 0.1),
vertex.shape = "rectangle",
layout = layout
)
}

vdiffr::expect_doppelganger("rectangle-edges", rectangle_edges)
})
Loading