% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/network-utils.R
\name{select_bridges}
\alias{select_bridges}
\title{Select Bridge Edges}
\usage{
select_bridges(
  x,
  ...,
  .keep_isolates = FALSE,
  keep_format = FALSE,
  directed = NULL
)
}
\arguments{
\item{x}{Network input.}

\item{...}{Additional filter expressions.}

\item{.keep_isolates}{Keep nodes with no edges? Default FALSE.}

\item{keep_format}{Keep input format? Default FALSE.}

\item{directed}{Auto-detect if NULL.}
}
\value{
A cograph_network with bridge edges only.
}
\description{
Select edges whose removal would disconnect the graph.
}
\examples{
# Create network with bridge
adj <- matrix(0, 5, 5)
adj[1, 2] <- adj[2, 1] <- 1
adj[2, 3] <- adj[3, 2] <- 1  # Bridge
adj[3, 4] <- adj[4, 3] <- 1
adj[4, 5] <- adj[5, 4] <- 1
adj[3, 5] <- adj[5, 3] <- 1
rownames(adj) <- colnames(adj) <- LETTERS[1:5]

select_bridges(adj)
}
\seealso{
\code{\link{select_edges}}, \code{\link{select_nodes}}
}
