Skip to contents

Select edges whose removal would disconnect the graph.

Usage

select_bridges(
  x,
  ...,
  keep_isolates = TRUE,
  keep_format = FALSE,
  directed = NULL
)

Arguments

x

Network input.

...

Additional filter expressions.

keep_isolates

Keep nodes that end up with no edges? Default TRUE.

keep_format

Keep input format? Default FALSE.

directed

Auto-detect if NULL.

Value

A cograph_network with bridge edges only.

Examples

strong <- filter_edges(regulation_net, weight > 0.3, keep_isolates = FALSE)
select_bridges(strong, keep_isolates = FALSE)
#> Cograph network: 6 nodes, 3 edges ( directed )
#> Source: matrix 
#>   Nodes (6): Plan, Monitor, Reflect, Discuss, Synthesize, Evaluate
#>   Edges: 3 / 30 (density: 10.0%)
#>   Weights: [0.330, 0.420]  |  mean: 0.383
#>   Strongest edges:
#>     Synthesize -> Reflect  0.420
#>     Plan -> Discuss  0.400
#>     Evaluate -> Monitor  0.330
#> Layout: none 
#>   Use as.data.frame() for the edge table, as.data.frame(what = "nodes") for the nodes.