技术控

    今日:120| 主题:49552
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] Network Analysis Part 2 Exercises

[复制链接]
花般破碎流年 发表于 2016-10-3 15:28:13
99 2

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
(This article was first published on R-exercises , and kindly contributed toR-bloggers)
   
Network Analysis Part 2 Exercises-1 (network,analysis,gis,network,analysis,mpeg2,pcr,analysis)
In this set of exercises we shall practice the functions for network statistics, using package igraph .If you don’t have package already installed, install it using the following code:
  [code]

install.packages("igraph")

[/code]  and load it into the session using the following code:
  [code]

library("igraph")

[/code]   before proceeding. You can find more info about the package and graphs in general here
   Answers to the exercises are available here .
  If you have different solution, feel free to post it.
   A number of employees in a factory was interviewed on a question: “Do you like to work with your co-worker?”. Possible answers are 1 for yes and 0 for no . Each employee gave an answer for each other employee thus creating an adjecancy matrix. You can download the dataset from here .
  Exercise 1

  Load the data and create an unweighted directed graph from the adjecancy matrix. Name the nodes as letters A to Y. Set node color to yellow and shape to sphere. Set the edge’s color to gray and arrow size to 0.2.
  Exercise 2

  Plot the graph.
  Exercise 3

  Calculate network diameter and average closeness.
  Exercise 4

  Calculate average network betweenness.
  Exercise 5

  Calculate network density and average degree.
  Exercise 6

  Calculate network reciprocity and average transitivity.
  Exercise 7

  Calculate average eccentricity of the vertices. What is the average distance between two nodes?
  Exercise 8

  Find the hubs and plot graph with node’s size according to their hubs index. Which employee is the biggest hub?
  Exercise 9

  Find the authorities and plot graph with node’s size according to their authority index. Which employee is the biggest authority?
  Exercise 10

  Show the nodes that make diameter. Plot these nodes larger and in red. Plot edges on this path thicker in red.
友荐云推荐




上一篇:Ryan Thompson from PyroCMS: “It’s all about principles”
下一篇:MariaDB 10.2 Beta
酷辣虫提示酷辣虫禁止发表任何与中华人民共和国法律有抵触的内容!所有内容由用户发布,并不代表酷辣虫的观点,酷辣虫无法对用户发布内容真实性提供任何的保证,请自行验证并承担风险与后果。如您有版权、违规等问题,请通过"联系我们"或"违规举报"告知我们处理。

大哥带头 发表于 2016-10-16 08:02:34
我们都知道恶虎架不住群狼。说明:”团队很重要!”
回复 支持 反对

使用道具 举报

妙松 发表于 2016-10-19 00:23:11
吹牛的人越来越多了!
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读

扫码访问 @iTTTTT瑞翔 的微博
回页顶回复上一篇下一篇回列表手机版
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )|网站地图 酷辣虫

© 2001-2016 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表