Skip to content
Draft
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
38 changes: 1 addition & 37 deletions R/components.R
Original file line number Diff line number Diff line change
Expand Up @@ -323,45 +323,9 @@ bridges <- function(graph) {
#' @cdocs igraph_biconnected_components
biconnected_components <- function(graph) {
# Function call
res <- biconnected_components_impl(
biconnected_components_impl(
graph = graph
)

# TODO: Clean up after fixing "." / "_" problem.
# See https://github.com/igraph/rigraph/issues/1203

if (igraph_opt("return.vs.es")) {
res$tree_edges <- lapply(
res$tree_edges,
unsafe_create_es,
graph = graph,
es = E(graph)
)
res$tree.edges <- NULL
}

if (igraph_opt("return.vs.es")) {
res$component_edges <- lapply(
res$component_edges,
unsafe_create_es,
graph = graph,
es = E(graph)
)
res$component.edges <- NULL
}
if (igraph_opt("return.vs.es")) {
res$components <- lapply(
res$components,
unsafe_create_vs,
graph = graph,
verts = V(graph)
)
}
if (igraph_opt("return.vs.es")) {
res$articulation_points <- create_vs(graph, res$articulation_points)
res$articulation.points <- NULL
}
res
}

#' Check biconnectedness
Expand Down
6 changes: 6 additions & 0 deletions tools/stimulus/functions-R.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,12 @@ igraph_adhesion:
igraph_cohesion:
IGNORE: RR, RC

igraph_biconnected_components:
PARAM_NAMES:
tree_edges: tree_edges
component_edges: component_edges
articulation_points: articulation_points

#######################################
# Listing s-t cuts, separators
#######################################
Expand Down