User Tools

Site Tools


centrality

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
centrality [2015/12/02 14:31] hkimscilcentrality [2024/11/18 10:44] (current) – [Eigenvector] hkimscil
Line 4: Line 4:
  
 ===== Closeness ===== ===== Closeness =====
-''setwd("D:/Users/Hyo/Cs-Kant/CS/Classes/sna_examples/sna_in_r")''+<code>setwd("D:/Users/Hyo/Cs-Kant/CS/Classes/sna_examples/sna_in_r")</code>
 <code># Social Network Analysis: Closeness Centrality   <code># Social Network Analysis: Closeness Centrality  
 library(sna) library(sna)
Line 20: Line 20:
 </code> </code>
  
-<code>gplot(L, displaylabels = T, vertex.cex = 1, label.cex = 2, edge.col="red",  +<code>gplot(L, displaylabels = T, vertex.cex = 1, label.cex = 2, edge.col="blue",  
-             boxed.labels = F, arrowhead.cex = 1, mode = "kamadakawai")+boxed.labels = F, arrowhead.cex = 1, mode = "kamadakawai")
 </code> </code>
 {{centrality_suzuki.png}} {{centrality_suzuki.png}}
Line 65: Line 65:
   - WEST: West group (private organization)   - WEST: West group (private organization)
  
 +for out link (information out)
 <code>round(closeness(knoke.infor,cmode="suminvdir"),2) <code>round(closeness(knoke.infor,cmode="suminvdir"),2)
  [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
 </code> </code>
 +for in link (information in)
 <code>round(closeness(t(knoke.infor),cmode="suminvdir"),2) <code>round(closeness(t(knoke.infor),cmode="suminvdir"),2)
  [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 144: Line 146:
 __Eigenvector Centrality__ __Eigenvector Centrality__
   * 중요한 노드에 연결된 노드가 중요하다는 관점   * 중요한 노드에 연결된 노드가 중요하다는 관점
 +  * That is, the centrality of each node i is proportional to the sum of the centrality of its neighbors.
  
 <code>rownames(knoke.infor) <code>rownames(knoke.infor)
centrality.1449036096.txt.gz · Last modified: 2015/12/02 14:31 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki