给出 g 的内在简单图中顶点的顶点度列表.
- DegreeCentrality returns a list of nonnegative integers ("degree centralities") that are particular centrality measures of the vertices of a graph. Degree centrality is a measure of the centrality of a node in a network and is defined as the number of edges (including self-loops) that lead into or out of the node. Degree centralities therefore lie between and inclusive, where is the number of vertices in a graph, and identify nodes in the network by their influence on other nodes in their immediate neighborhood. This measure has found applications in social networks, transportation, biology, and the social sciences.
- A second argument "In" or "Out" can be used to give a list of vertex in- or out-degrees, respectively, which correspond to one another for undirected graphs.
- DegreeCentrality is a local measure that is equivalent to VertexDegree for simple graphs. Similar centrality measures include EigenvectorCentrality and KatzCentrality.