File: is_complete.Rd

package info (click to toggle)
r-cran-igraph 2.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 27,772 kB
  • sloc: ansic: 206,420; cpp: 21,827; fortran: 4,090; yacc: 1,229; lex: 518; sh: 52; makefile: 8
file content (40 lines) | stat: -rw-r--r-- 956 bytes parent folder | download
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
35
36
37
38
39
40
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cliques.R
\name{is_complete}
\alias{is_complete}
\title{Is this a complete graph?}
\usage{
is_complete(graph)
}
\arguments{
\item{graph}{The input graph.}
}
\value{
True if the graph is complete.
}
\description{
A graph is considered complete if there is an edge between all distinct
directed pairs of vertices. igraph considers both the singleton graph
and the null graph complete.
}
\examples{

g <- make_full_graph(6, directed = TRUE)
is_complete(g)
g <- delete_edges(g, 1)
is_complete(g)
g <- as_undirected(g)
is_complete(g)
}
\seealso{
\code{\link[=make_full_graph]{make_full_graph()}}

Other cliques: 
\code{\link{cliques}()},
\code{\link{ivs}()},
\code{\link{weighted_cliques}()}
}
\concept{cliques}
\keyword{graphs}
\section{Related documentation in the C library}{\href{https://igraph.org/c/html/0.10.17/igraph-Cliques.html#igraph_is_complete}{\code{is_complete()}}.}