1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/structural.properties.R
\name{induced.subgraph}
\alias{induced.subgraph}
\title{Subgraph of a graph}
\usage{
induced.subgraph(
graph,
vids,
impl = c("auto", "copy_and_delete", "create_from_scratch")
)
}
\arguments{
\item{graph}{The original graph.}
\item{vids}{Numeric vector, the vertices of the original graph which will
form the subgraph.}
\item{impl}{Character scalar, to choose between two implementation of the
subgraph calculation. \sQuote{\code{copy_and_delete}} copies the graph
first, and then deletes the vertices and edges that are not included in the
result graph. \sQuote{\code{create_from_scratch}} searches for all vertices
and edges that must be kept and then uses them to create the graph from
scratch. \sQuote{\code{auto}} chooses between the two implementations
automatically, using heuristics based on the size of the original and the
result graph.}
}
\description{
\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#deprecated}{\figure{lifecycle-deprecated.svg}{options: alt='[Deprecated]'}}}{\strong{[Deprecated]}}
\code{induced.subgraph()} was renamed to \code{induced_subgraph()} to create a more
consistent API.
}
\keyword{internal}
|