centrality
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
centrality [2015/11/24 09:29] – hkimscil | centrality [2018/06/07 10:05] – hkimscil | ||
---|---|---|---|
Line 4: | Line 4: | ||
===== Closeness ===== | ===== Closeness ===== | ||
+ | < | ||
< | < | ||
library(sna) | library(sna) | ||
Line 19: | Line 20: | ||
</ | </ | ||
- | < | + | < |
- | | + | boxed.labels = F, arrowhead.cex = 1, mode = " |
</ | </ | ||
{{centrality_suzuki.png}} | {{centrality_suzuki.png}} | ||
Line 93: | Line 94: | ||
</ | </ | ||
- | </code> | + | < |
</ | </ | ||
< | < | ||
Line 117: | Line 118: | ||
</ | </ | ||
< | < | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | twostars <- matrix(0, | ||
+ | edges <- matrix(c(1, | ||
+ | 6, | ||
+ | byrow=T, | ||
+ | twostars[edges] <- 1 | ||
+ | twostars <- twostars + t(twostars) - twostars * t(twostars) | ||
+ | |||
+ | gplot(twostars, | ||
+ | edge.col=" | ||
+ | betweenness(twostars) | ||
+ | closeness(twostars) | ||
+ | </ | ||
+ | {{two_star_network.png}} | ||
+ | |||
+ | < | ||
+ | [1] 76 0 0 0 0 70 72 70 0 0 0 0 76 | ||
+ | > round(closeness(twostars), | ||
+ | [1] 0.35 0.27 0.27 0.27 0.27 0.39 0.40 0.39 0.27 0.27 0.27 0.27 0.35 | ||
+ | </ | ||
+ | |||
+ | ===== Eigenvector ===== | ||
+ | __Eigenvector Centrality__ | ||
+ | * 중요한 노드에 연결된 노드가 중요하다는 관점 | ||
+ | |||
+ | < | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | [1] " | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | [1] 0.25 0.41 0.36 0.26 0.47 0.15 0.22 0.35 0.21 0.33 | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | [1] 0.30 0.45 0.21 0.34 0.45 0.04 0.46 0.18 0.28 0.13 | ||
</ | </ | ||
centrality.txt · Last modified: 2019/11/12 16:04 by hkimscil