File: centr_betw_tmax.Rd

package info (click to toggle)
r-cran-igraph 2.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 27,044 kB
  • sloc: ansic: 204,981; cpp: 21,711; fortran: 4,090; yacc: 1,229; lex: 519; sh: 52; makefile: 8
file content (48 lines) | stat: -rw-r--r-- 1,586 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
41
42
43
44
45
46
47
48
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/centralization.R
\name{centr_betw_tmax}
\alias{centr_betw_tmax}
\title{Theoretical maximum for betweenness centralization}
\usage{
centr_betw_tmax(graph = NULL, nodes = 0, directed = TRUE)
}
\arguments{
\item{graph}{The input graph. It can also be \code{NULL} if
\code{nodes} and \code{directed} are both given.}

\item{nodes}{The number of vertices. This is ignored if the graph is
given.}

\item{directed}{Logical scalar, whether to use directed shortest paths
for calculating betweenness. Ignored if an undirected graph was
given.}
}
\value{
Real scalar, the theoretical maximum (unnormalized) graph
betweenness centrality score for graphs with given order and other
parameters.
}
\description{
See \code{\link[=centralize]{centralize()}} for a summary of graph centralization.
}
\examples{
# A BA graph is quite centralized
g <- sample_pa(1000, m = 4)
centr_betw(g, normalized = FALSE)$centralization \%>\%
  `/`(centr_betw_tmax(g))
centr_betw(g, normalized = TRUE)$centralization
}
\seealso{
Other centralization related: 
\code{\link{centr_betw}()},
\code{\link{centr_clo}()},
\code{\link{centr_clo_tmax}()},
\code{\link{centr_degree}()},
\code{\link{centr_degree_tmax}()},
\code{\link{centr_eigen}()},
\code{\link{centr_eigen_tmax}()},
\code{\link{centralize}()}
}
\concept{centralization related}
\section{Related documentation in the C library}{\href{https://igraph.org/c/html/latest/igraph-Structural.html#igraph_centralization_betweenness_tmax}{\code{igraph_centralization_betweenness_tmax()}}.}