Learn R Programming

DiagrammeR (version 0.8.4)

get_articulation_points: Get articulation points

Description

Get the nodes in the graph that are identified as articulation points.

Usage

get_articulation_points(graph)

Arguments

graph
a graph object of class dgr_graph.

Value

a vector of node IDs.

Examples

Run this code
# Create a random graph
graph <-
  create_random_graph(
  30, 50, set_seed = 1)

# Get the articulation points in the graph (i.e.,
# those nodes that if any were to be removed, the
# graph would become disconnected)
get_articulation_points(graph)
#> [1] "8"  "22" "24"

Run the code above in your browser using DataLab