Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
e1a396d
chore: add commit-lifecycle.R script
maelle May 19, 2026
e9c2ab9
feat!: bump deprecated functions in R/adjacency.R
maelle May 19, 2026
389746b
feat!: bump deprecated functions in R/as_phylo.R
maelle May 19, 2026
fdcfbe5
feat!: bump deprecated functions in R/assortativity.R
maelle May 19, 2026
11bb318
feat!: bump deprecated functions in R/attributes.R
maelle May 19, 2026
4f8e84e
feat!: bump deprecated functions in R/basic.R
maelle May 19, 2026
8e59811
feat!: bump deprecated functions in R/bipartite.R
maelle May 19, 2026
7ed6a01
feat!: bump deprecated functions in R/centrality.R
maelle May 19, 2026
dcc783f
feat!: bump deprecated functions in R/centralization.R
maelle May 19, 2026
8d10f2c
feat!: bump deprecated functions in R/cliques.R
maelle May 19, 2026
ca6f3d0
feat!: bump deprecated functions in R/cohesive.blocks.R
maelle May 19, 2026
64fb478
feat!: bump deprecated functions in R/community.R
maelle May 19, 2026
50cd951
feat!: bump deprecated functions in R/components.R
maelle May 19, 2026
0c57a2a
feat!: bump deprecated functions in R/console.R
maelle May 19, 2026
5f5b958
feat!: bump deprecated functions in R/conversion.R
maelle May 19, 2026
e039949
feat!: bump deprecated functions in R/decomposition.R
maelle May 19, 2026
b073b21
feat!: bump deprecated functions in R/degseq.R
maelle May 19, 2026
7b5946a
feat!: bump deprecated functions in R/fit.R
maelle May 19, 2026
5ec9e2d
feat!: bump deprecated functions in R/flow.R
maelle May 19, 2026
42d306c
feat!: bump deprecated functions in R/foreign.R
maelle May 19, 2026
b3a5bcd
feat!: bump deprecated functions in R/games.R
maelle May 19, 2026
f0e4582
feat!: bump deprecated functions in R/glet.R
maelle May 19, 2026
06f99ba
feat!: bump deprecated functions in R/hrg.R
maelle May 19, 2026
ad0fc88
feat!: bump deprecated functions in R/incidence.R
maelle May 19, 2026
c37512d
feat!: bump deprecated functions in R/interface.R
maelle May 19, 2026
2f2d008
feat!: bump deprecated functions in R/layout.R
maelle May 19, 2026
33f52eb
feat!: bump deprecated functions in R/make.R
maelle May 19, 2026
8d6f397
chore: update NEWS.md for lifecycle bumps
maelle May 19, 2026
9817ff6
chore: Auto-update from GitHub Actions
maelle May 19, 2026
7077e31
feat!: bump deprecate_soft to deprecate_warn in R/minimum.spanning.tr…
maelle May 19, 2026
03267f8
feat!: bump deprecate_soft to deprecate_warn in R/motifs.R
maelle May 19, 2026
72c3e12
feat!: bump deprecate_soft to deprecate_warn in R/operators.R
maelle May 19, 2026
2cddd68
feat!: bump deprecate_soft to deprecate_warn in R/other.R
maelle May 19, 2026
d2f0cb2
feat!: bump deprecate_soft to deprecate_warn in R/par.R
maelle May 19, 2026
96af2d8
feat!: bump deprecate_soft to deprecate_warn in R/paths.R
maelle May 19, 2026
9afca6a
feat!: bump deprecate_soft to deprecate_warn in R/plot.shapes.R
maelle May 19, 2026
dd4528e
feat!: bump deprecate_soft to deprecate_warn in R/similarity.R
maelle May 19, 2026
e09c0bc
feat!: bump deprecate_soft to deprecate_warn in R/simple.R
maelle May 19, 2026
a8dd7d5
feat!: bump deprecate_soft to deprecate_warn in R/stochastic_matrix.R
maelle May 19, 2026
d41f28f
feat!: bump deprecated functions in R/structural-properties.R
maelle May 19, 2026
977c194
feat!: bump deprecate_soft to deprecate_warn in R/structure.info.R
maelle May 19, 2026
1378cc9
feat!: bump deprecate_soft to deprecate_warn in R/tkplot.R
maelle May 19, 2026
49c740d
feat!: bump deprecate_soft to deprecate_warn in R/topology.R
maelle May 19, 2026
12a64ac
feat!: bump deprecate_soft to deprecate_warn in R/triangles.R
maelle May 19, 2026
c763bda
feat!: bump deprecate_soft to deprecate_warn in R/versions.R
maelle May 19, 2026
e26db25
chore: tools
maelle May 19, 2026
3805f60
oops
maelle May 19, 2026
4950cf7
chore: Auto-update from GitHub Actions
maelle May 19, 2026
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
7 changes: 4 additions & 3 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@
^src/*\.gcda$
^src/*\.gcno$
^R/release\.R$
^BRANCHES\.md$
^scripts$
^\.claude$
^man/dot-igraph.progress\.Rd$
^man/dot-igraph.status\.Rd$
^man/dot-extract_constructor_and_modifiers\.Rd$
^man/dot-apply_modifiers\.Rd$
^man/handle_vertex_type_arg\.Rd$
^BRANCHES\.md$
^scripts$
^\.claude$
^lifecycle$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ cran
/_codeql_detected_source_root
/tests/testthat/_problems/
.ccache/
lifecycle
2 changes: 0 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ export(get.adjlist)
export(get.all.shortest.paths)
export(get.data.frame)
export(get.diameter)
export(get.edge)
export(get.edge.attribute)
export(get.edge.ids)
export(get.edgelist)
Expand Down Expand Up @@ -610,7 +609,6 @@ export(layout.fruchterman.reingold.grid)
export(layout.gem)
export(layout.graphopt)
export(layout.grid)
export(layout.grid.3d)
export(layout.kamada.kawai)
export(layout.lgl)
export(layout.mds)
Expand Down
361 changes: 320 additions & 41 deletions NEWS.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions R/adjacency.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ graph.adjacency <- function(
add.rownames = NA
) {
# nocov start
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"2.0.0",
"graph.adjacency()",
"graph_from_adjacency_matrix()"
Expand Down Expand Up @@ -293,7 +293,7 @@ graph_from_adjacency_matrix <- function(
ensure_no_na(adjmatrix, "adjacency matrix", mode)

if (!is.matrix(adjmatrix) && !inherits(adjmatrix, "Matrix")) {
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"1.6.0",
"graph_from_adjacency_matrix(adjmatrix = 'must be a matrix')"
)
Expand All @@ -302,7 +302,7 @@ graph_from_adjacency_matrix <- function(

if (mode == "undirected") {
if (!is_symmetric(adjmatrix)) {
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"1.6.0",
"graph_from_adjacency_matrix(adjmatrix = 'must be symmetric with mode = \"undirected\"')",
details = 'Use mode = "max" to achieve the original behavior.'
Expand Down
2 changes: 1 addition & 1 deletion R/as_phylo.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#' @inheritParams ape::as.phylo
#' @keywords internal
as_phylo <- function(x, ...) {
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"1.5.0",
"ape::as.phylo()"
)
Expand Down
10 changes: 5 additions & 5 deletions R/assortativity.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ assortativity.nominal <- function(
normalized = TRUE
) {
# nocov start
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"2.0.0",
"assortativity.nominal()",
"assortativity_nominal()"
Expand All @@ -40,7 +40,7 @@ assortativity.nominal <- function(
#' @export
assortativity.degree <- function(graph, directed = TRUE) {
# nocov start
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"2.0.0",
"assortativity.degree()",
"assortativity_degree()"
Expand Down Expand Up @@ -171,7 +171,7 @@ assortativity <- function(
types2 = NULL
) {
if (...length() > 0) {
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"1.6.0",
"assortativity(... =)",
details = "Arguments `values` and `values.in` must be named."
Expand All @@ -193,7 +193,7 @@ assortativity <- function(
}

if (missing(values)) {
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"1.6.0",
"assortativity(types1 =)",
"assortativity(values =)"
Expand All @@ -202,7 +202,7 @@ assortativity <- function(
}

if (!is.null(types2)) {
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"1.6.0",
"assortativity(types2 =)",
"assortativity(values.in =)"
Expand Down
30 changes: 15 additions & 15 deletions R/attributes.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#' @export
set.vertex.attribute <- function(graph, name, index = V(graph), value) {
# nocov start
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"2.0.0",
"set.vertex.attribute()",
"set_vertex_attr()"
Expand All @@ -30,7 +30,7 @@ set.vertex.attribute <- function(graph, name, index = V(graph), value) {
#' @export
set.graph.attribute <- function(graph, name, value) {
# nocov start
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"2.0.0",
"set.graph.attribute()",
"set_graph_attr()"
Expand All @@ -50,7 +50,7 @@ set.graph.attribute <- function(graph, name, value) {
#' @export
set.edge.attribute <- function(graph, name, index = E(graph), value) {
# nocov start
lifecycle::deprecate_soft("2.0.0", "set.edge.attribute()", "set_edge_attr()")
lifecycle::deprecate_warn("2.0.0", "set.edge.attribute()", "set_edge_attr()")
set_edge_attr(graph = graph, name = name, index = index, value = value)
} # nocov end

Expand All @@ -66,7 +66,7 @@ set.edge.attribute <- function(graph, name, index = E(graph), value) {
#' @export
remove.vertex.attribute <- function(graph, name) {
# nocov start
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"2.0.0",
"remove.vertex.attribute()",
"delete_vertex_attr()"
Expand All @@ -86,7 +86,7 @@ remove.vertex.attribute <- function(graph, name) {
#' @export
remove.graph.attribute <- function(graph, name) {
# nocov start
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"2.0.0",
"remove.graph.attribute()",
"delete_graph_attr()"
Expand All @@ -106,7 +106,7 @@ remove.graph.attribute <- function(graph, name) {
#' @export
remove.edge.attribute <- function(graph, name) {
# nocov start
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"2.0.0",
"remove.edge.attribute()",
"delete_edge_attr()"
Expand All @@ -126,7 +126,7 @@ remove.edge.attribute <- function(graph, name) {
#' @export
list.vertex.attributes <- function(graph) {
# nocov start
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"2.0.0",
"list.vertex.attributes()",
"vertex_attr_names()"
Expand All @@ -146,7 +146,7 @@ list.vertex.attributes <- function(graph) {
#' @export
list.graph.attributes <- function(graph) {
# nocov start
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"2.0.0",
"list.graph.attributes()",
"graph_attr_names()"
Expand All @@ -166,7 +166,7 @@ list.graph.attributes <- function(graph) {
#' @export
list.edge.attributes <- function(graph) {
# nocov start
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"2.0.0",
"list.edge.attributes()",
"edge_attr_names()"
Expand All @@ -186,7 +186,7 @@ list.edge.attributes <- function(graph) {
#' @export
is.weighted <- function(graph) {
# nocov start
lifecycle::deprecate_soft("2.0.0", "is.weighted()", "is_weighted()")
lifecycle::deprecate_warn("2.0.0", "is.weighted()", "is_weighted()")
is_weighted(graph = graph)
} # nocov end

Expand All @@ -202,7 +202,7 @@ is.weighted <- function(graph) {
#' @export
is.named <- function(graph) {
# nocov start
lifecycle::deprecate_soft("2.0.0", "is.named()", "is_named()")
lifecycle::deprecate_warn("2.0.0", "is.named()", "is_named()")
is_named(graph = graph)
} # nocov end

Expand All @@ -218,7 +218,7 @@ is.named <- function(graph) {
#' @export
is.bipartite <- function(graph) {
# nocov start
lifecycle::deprecate_soft("2.0.0", "is.bipartite()", "is_bipartite()")
lifecycle::deprecate_warn("2.0.0", "is.bipartite()", "is_bipartite()")
is_bipartite(graph = graph)
} # nocov end

Expand All @@ -234,7 +234,7 @@ is.bipartite <- function(graph) {
#' @export
get.vertex.attribute <- function(graph, name, index = V(graph)) {
# nocov start
lifecycle::deprecate_soft("2.0.0", "get.vertex.attribute()", "vertex_attr()")
lifecycle::deprecate_warn("2.0.0", "get.vertex.attribute()", "vertex_attr()")
vertex_attr(graph = graph, name = name, index = index)
} # nocov end

Expand All @@ -250,7 +250,7 @@ get.vertex.attribute <- function(graph, name, index = V(graph)) {
#' @export
get.graph.attribute <- function(graph, name) {
# nocov start
lifecycle::deprecate_soft("2.0.0", "get.graph.attribute()", "graph_attr()")
lifecycle::deprecate_warn("2.0.0", "get.graph.attribute()", "graph_attr()")
graph_attr(graph = graph, name = name)
} # nocov end

Expand All @@ -266,7 +266,7 @@ get.graph.attribute <- function(graph, name) {
#' @export
get.edge.attribute <- function(graph, name, index = E(graph)) {
# nocov start
lifecycle::deprecate_soft("2.0.0", "get.edge.attribute()", "edge_attr()")
lifecycle::deprecate_warn("2.0.0", "get.edge.attribute()", "edge_attr()")
edge_attr(graph = graph, name = name, index = index)
} # nocov end
# IGraph R package
Expand Down
15 changes: 1 addition & 14 deletions R/basic.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#' @export
is.igraph <- function(graph) {
# nocov start
lifecycle::deprecate_soft("2.0.0", "is.igraph()", "is_igraph()")
lifecycle::deprecate_warn("2.0.0", "is.igraph()", "is_igraph()")
is_igraph(graph = graph)
} # nocov end
# IGraph R package
Expand Down Expand Up @@ -56,19 +56,6 @@ is_igraph <- function(graph) {
TRUE
}

#' Incident vertices of some graph edges
#' @description
#' `r lifecycle::badge("deprecated")`
#'
#' Use [ends()].
#' @inheritParams ends
#' @export
#' @keywords internal
get.edge <- function(graph, id) {
lifecycle::deprecate_stop("2.1.0", "get.edge()", "ends()")
}


#' Head of the edge(s) in a graph
#'
#' For undirected graphs, head and tail is not defined. In this case
Expand Down
6 changes: 3 additions & 3 deletions R/bipartite.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#' @export
bipartite.projection.size <- function(graph, types = NULL) {
# nocov start
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"2.0.0",
"bipartite.projection.size()",
"bipartite_projection_size()"
Expand All @@ -37,7 +37,7 @@ bipartite.projection <- function(
remove.type = TRUE
) {
# nocov start
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"2.0.0",
"bipartite.projection()",
"bipartite_projection()"
Expand All @@ -64,7 +64,7 @@ bipartite.projection <- function(
#' @export
bipartite.mapping <- function(graph) {
# nocov start
lifecycle::deprecate_soft(
lifecycle::deprecate_warn(
"2.0.0",
"bipartite.mapping()",
"bipartite_mapping()"
Expand Down
Loading