% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make.R
\name{make_full_multipartite}
\alias{make_full_multipartite}
\alias{full_multipartite}
\title{Create a full multipartite graph}
\usage{
make_full_multipartite(n, directed = FALSE, mode = c("all", "out", "in"))

full_multipartite(n, directed = FALSE, mode = c("all", "out", "in"))
}
\arguments{
\item{n}{A numeric vector giving the number of vertices in each partition.}

\item{directed}{Logical scalar, whether to create a directed graph.}

\item{mode}{Character scalar, the type of connections for directed graphs.
If \code{"out"}, then edges point from vertices of partitions with lower
indices to partitions with higher indices; if \code{"in"}, then the opposite
direction is realized; \code{"all"} creates mutual edges. This parameter is
ignored for undirected graphs.}
}
\value{
An igraph graph with a vertex attribute \code{type} storing the
partition index of each vertex. Partition indices start from 1.
}
\description{
A multipartite graph contains multiple types of vertices and connections
are only possible between vertices of different types. This function
creates a complete multipartite graph where all possible edges between
different partitions are present.
}
\section{Related documentation in the C library}{
\href{https://igraph.org/c/html/0.10.17/igraph-Generators.html#igraph_full_multipartite}{\code{full_multipartite()}}, \href{https://igraph.org/c/html/0.10.17/igraph-Basic.html#igraph_vcount}{\code{vcount()}}
}

\examples{
# Create a multipartite graph with partitions of size 2, 3, and 4
g <- make_full_multipartite(c(2, 3, 4))
plot(g)

# Create a directed multipartite graph
g2 <- make_full_multipartite(c(2, 2, 2), directed = TRUE, mode = "out")
plot(g2)
}
\seealso{
Other deterministic constructors: 
\code{\link{graph_from_atlas}()},
\code{\link{graph_from_edgelist}()},
\code{\link{graph_from_literal}()},
\code{\link{make_}()},
\code{\link{make_chordal_ring}()},
\code{\link{make_circulant}()},
\code{\link{make_empty_graph}()},
\code{\link{make_full_citation_graph}()},
\code{\link{make_full_graph}()},
\code{\link{make_graph}()},
\code{\link{make_lattice}()},
\code{\link{make_ring}()},
\code{\link{make_star}()},
\code{\link{make_tree}()},
\code{\link{make_turan}()},
\code{\link{make_wheel}()}
}
\concept{deterministic constructors}
