R Data Analysis Cookbook, Second Edition - Second Edition
by Kuntal Ganguly, Davor Lozić, Mzabalazo Z. Ngwenya, Andrew Bauman, Shanthi Viswanathan, Viswa Viswanathan
How it works...
Step 1 computes various metrics dealing with the degree of the vertices in a graph. Degree measures the number of edges connected to a vertex or node. Degree distribution provides the frequency of all degree measures up to the maximum degree. For an undirected graph, the degree is always the total adjacent edges. However, for a directed graph, the degree depends on the mode argument passed. Mode can be out, in, all, or total. Both all and total return the total degree of that node or vertex. You should be able to verify some of the numbers from the plots provided earlier.
Centrality determines how individual nodes fit within a network. High centrality nodes are influencers: positive and negative. There are different types ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access