% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vulnerability.R
\name{plot.cograph_vulnerability}
\alias{plot.cograph_vulnerability}
\title{Plot Node Vulnerability}
\usage{
\method{plot}{cograph_vulnerability}(x, top = NULL, col = "steelblue", ...)
}
\arguments{
\item{x}{A \code{cograph_vulnerability} object.}

\item{top}{Integer or NULL. Show only top N nodes. Default NULL (all).}

\item{col}{Bar color. Default \code{"steelblue"}.}

\item{...}{Additional arguments passed to \code{\link[graphics]{barplot}}.}
}
\value{
Invisible \code{x}.
}
\description{
Plot Node Vulnerability
}
\examples{
star <- matrix(c(0,1,1,1, 1,0,0,0, 1,0,0,0, 1,0,0,0), 4, 4)
rownames(star) <- colnames(star) <- c("hub", "a", "b", "c")
v <- cograph::vulnerability(star)
plot(v)
}
