View source: R/DNSL.betweenness.R
DNSL.betweenness | R Documentation |
Computes the betweenness of nodes in a graph that includes self-loops directly.
DNSL.betweenness(df,first.node = "V1",second.node = "V2")
df |
A data frame that should include at least two columns with the names of the nodes |
first.node |
The column that indicates the node that's linked |
second.node |
The column that indicates the other node that's linked |
This method computes betweenness centrality of a social network described by a data frame. Use it when you want to just apply the DNSLbetweenness method \insertCitemm24:intra_family_linksdupNodes to a data set, without using the intermediate graph obtained by duplicating nodes.
A list with betweenness values indexed by node name
library(igraph)
V1 <- c("A", "A","B","C","D","E")
V2 <- c("A", "B","C","D","E","A")
print(DNSL.betweenness(data.frame(V1,V2)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.