% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cocitation.R
\name{cocitation}
\alias{cocitation}
\alias{bibcoupling}
\title{Cocitation coupling}
\usage{
cocitation(graph, v = V(graph))

bibcoupling(graph, v = V(graph))
}
\arguments{
\item{graph}{The graph object to analyze}

\item{v}{Vertex sequence or numeric vector, the vertex ids for which the
cocitation or bibliographic coupling values we want to calculate. The
default is all vertices.}
}
\value{
A numeric matrix with \code{length(v)} lines and
\code{vcount(graph)} columns. Element \verb{(i,j)} contains the cocitation
or bibliographic coupling for vertices \code{v[i]} and \code{j}.
}
\description{
Two vertices are cocited if there is another vertex citing both of them.
\code{cocitation()} simply counts how many types two vertices are cocited. The
bibliographic coupling of two vertices is the number of other vertices they
both cite, \code{bibcoupling()} calculates this.
}
\details{
\code{cocitation()} calculates the cocitation counts for the vertices in the
\code{v} argument and all vertices in the graph.

\code{bibcoupling()} calculates the bibliographic coupling for vertices in
\code{v} and all vertices in the graph.

Calculating the cocitation or bibliographic coupling for only one vertex
costs the same amount of computation as for all vertices. This might change
in the future.
}
\section{Related documentation in the C library}{
\href{https://igraph.org/c/html/0.10.17/igraph-Structural.html#igraph_cocitation}{\code{cocitation()}}, \href{https://igraph.org/c/html/0.10.17/igraph-Basic.html#igraph_vcount}{\code{vcount()}}, \href{https://igraph.org/c/html/0.10.17/igraph-Structural.html#igraph_bibcoupling}{\code{bibcoupling()}}
}

\examples{

g <- make_kautz_graph(2, 3)
cocitation(g)
bibcoupling(g)

}
\seealso{
Other cocitation: 
\code{\link{similarity}()}
}
\author{
Gabor Csardi \email{csardi.gabor@gmail.com}
}
\concept{cocitation}
\keyword{graphs}
