centrality
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| centrality [2015/11/24 09:15] – created hkimscil | centrality [2024/11/18 10:44] (current) – [Eigenvector] 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 53: | Line 54: | ||
| </ | </ | ||
| {{knoke_info.png}} | {{knoke_info.png}} | ||
| + | - COUN: county government | ||
| + | - COMM: chamber of commerce | ||
| + | - EDUC: board of education | ||
| + | - INDU: Industry development agency | ||
| + | - MAYR: Mayor | ||
| + | - WRO: Women Right Organization group | ||
| + | - NEWS: Newspaper | ||
| + | - WAY: United Way (private organization) | ||
| + | - WELF: Welfare | ||
| + | - WEST: West group (private organization) | ||
| - | COUN: county government | + | for out link (information out) |
| - | COMM: chamber of commerce | + | |
| - | EDUC: board of education | + | |
| - | INDU: Industry development agency | + | |
| - | MAYR: Mayor | + | |
| - | WRO: Women Right Organization group | + | |
| - | NEWS: Newspaper | + | |
| - | WAY: United Way (private organization) | + | |
| - | WELF: Welfare | + | |
| - | WEST: West group (private organization) | + | |
| - | + | ||
| - | + | ||
| < | < | ||
| [1] 0.70 0.89 0.83 0.70 0.94 0.63 0.65 0.81 0.65 0.78 | [1] 0.70 0.89 0.83 0.70 0.94 0.63 0.65 0.81 0.65 0.78 | ||
| </ | </ | ||
| + | for in link (information in) | ||
| < | < | ||
| [1] 0.76 0.94 0.72 0.78 0.94 0.46 1.00 0.59 0.78 0.61 | [1] 0.76 0.94 0.72 0.78 0.94 0.46 1.00 0.59 0.78 0.61 | ||
| Line 76: | Line 76: | ||
| ===== Betweenness ===== | ===== Betweenness ===== | ||
| + | 노드 k에 대해서 노드 i 과 j 의 최단 경로 사이에 끼이게 되는 경우의 총합 | ||
| + | |||
| + | < | ||
| + | library(sna) | ||
| + | |||
| + | # The nearly linear network | ||
| + | L <- matrix(c(0, | ||
| + | 0, | ||
| + | 0, | ||
| + | 1, | ||
| + | 0, | ||
| + | 0, | ||
| + | 0, | ||
| + | 0, | ||
| + | 0, | ||
| + | gplot(L, displaylabels=T, | ||
| + | edge.col=" | ||
| + | mode=" | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | S <- matrix(c(0, | ||
| + | 1, | ||
| + | 1, | ||
| + | 1, | ||
| + | 1, | ||
| + | 1, | ||
| + | 1, | ||
| + | 1, | ||
| + | 1, | ||
| + | gplot(S, displaylabels=T, | ||
| + | edge.col=" | ||
| + | mode=" | ||
| + | </ | ||
| + | {{star_between.png}} | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | 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__ | ||
| + | * 중요한 노드에 연결된 노드가 중요하다는 관점 | ||
| + | * That is, the centrality of each node i is proportional to the sum of the centrality of its neighbors. | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | [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.1448325901.txt.gz · Last modified: by hkimscil
