GraphTheory
DegreeCentrality
compute degree centrality
Calling Sequence
Parameters
Description
Examples
Compatibility
DegreeCentrality(G)
DegreeCentrality(G, v)
G
-
graph
v
(optional) a vertex of G
DegreeCentrality returns the degree centrality for a specified vertex in the given graph G, or if no vertex is specified, returns a list of the degree centralities for each vertex in G.
The degree centrality of a vertex v is simply the normalized degree of v; that is, the degree of v divided by NumberOfVertices(G)-1.
with⁡GraphTheory:
Compute the degree centrality for a specified graph.
G≔Graph⁡6,1,3,1,6,2,4,2,6,3,6,4,5,4,6,5,6
G≔Graph 1: an undirected graph with 6 vertices and 8 edges
DegreeSequence⁡G
2,2,2,3,2,5
DegreeCentrality⁡G
25,25,25,35,25,1
The GraphTheory[DegreeCentrality] command was introduced in Maple 2020.
For more information on Maple 2020 changes, see Updates in Maple 2020 .
See Also
BetweennessCentrality
ClosenessCentrality
Degree
EigenvectorCentrality
HarmonicCentrality
InformationCentrality
KatzCentrality
PageRankCentrality
Download Help Document
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル