% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/games.R
\name{connect.neighborhood}
\alias{connect.neighborhood}
\title{Neighborhood of graph vertices}
\usage{
connect.neighborhood(graph, order, mode = c("all", "out", "in", "total"))
}
\arguments{
\item{graph}{The input graph.}

\item{order}{Integer giving the order of the neighborhood. Negative values
indicate an infinite order.}

\item{mode}{Character constant, it specifies how to use the direction of
the edges if a directed graph is analyzed. For \sQuote{out} only the
outgoing edges are followed, so all vertices reachable from the source
vertex in at most \code{order} steps are counted. For \sQuote{"in"} all
vertices from which the source vertex is reachable in at most \code{order}
steps are counted. \sQuote{"all"} ignores the direction of the edges. This
argument is ignored for undirected graphs.}
}
\description{
\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#deprecated}{\figure{lifecycle-deprecated.svg}{options: alt='[Deprecated]'}}}{\strong{[Deprecated]}}

\code{connect.neighborhood()} was renamed to \code{\link[=connect]{connect()}} to create a more
consistent API.
}
\section{Related documentation in the C library}{
\href{https://igraph.org/c/html/0.10.17/igraph-Operators.html#igraph_connect_neighborhood}{\code{connect_neighborhood()}}
}

\keyword{internal}
