{"action":"created","issue":{"url":"https://api.github.com/repos/ucsd-lo-group/social-network-analysis/issues/2","repository_url":"https://api.github.com/repos/ucsd-lo-group/social-network-analysis","labels_url":"https://api.github.com/repos/ucsd-lo-group/social-network-analysis/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ucsd-lo-group/social-network-analysis/issues/2/comments","events_url":"https://api.github.com/repos/ucsd-lo-group/social-network-analysis/issues/2/events","html_url":"https://github.com/ucsd-lo-group/social-network-analysis/issues/2","id":265653089,"number":2,"title":"[R] Undirected Weights","user":{"login":"albertchai01","id":24955121,"avatar_url":"https://avatars3.githubusercontent.com/u/24955121?v=4","gravatar_id":"","url":"https://api.github.com/users/albertchai01","html_url":"https://github.com/albertchai01","followers_url":"https://api.github.com/users/albertchai01/followers","following_url":"https://api.github.com/users/albertchai01/following{/other_user}","gists_url":"https://api.github.com/users/albertchai01/gists{/gist_id}","starred_url":"https://api.github.com/users/albertchai01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertchai01/subscriptions","organizations_url":"https://api.github.com/users/albertchai01/orgs","repos_url":"https://api.github.com/users/albertchai01/repos","events_url":"https://api.github.com/users/albertchai01/events{/privacy}","received_events_url":"https://api.github.com/users/albertchai01/received_events","type":"User","site_admin":false},"labels":[{"id":712607425,"url":"https://api.github.com/repos/ucsd-lo-group/social-network-analysis/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"Alee4738","id":16523442,"avatar_url":"https://avatars0.githubusercontent.com/u/16523442?v=4","gravatar_id":"","url":"https://api.github.com/users/Alee4738","html_url":"https://github.com/Alee4738","followers_url":"https://api.github.com/users/Alee4738/followers","following_url":"https://api.github.com/users/Alee4738/following{/other_user}","gists_url":"https://api.github.com/users/Alee4738/gists{/gist_id}","starred_url":"https://api.github.com/users/Alee4738/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alee4738/subscriptions","organizations_url":"https://api.github.com/users/Alee4738/orgs","repos_url":"https://api.github.com/users/Alee4738/repos","events_url":"https://api.github.com/users/Alee4738/events{/privacy}","received_events_url":"https://api.github.com/users/Alee4738/received_events","type":"User","site_admin":false},"assignees":[{"login":"Alee4738","id":16523442,"avatar_url":"https://avatars0.githubusercontent.com/u/16523442?v=4","gravatar_id":"","url":"https://api.github.com/users/Alee4738","html_url":"https://github.com/Alee4738","followers_url":"https://api.github.com/users/Alee4738/followers","following_url":"https://api.github.com/users/Alee4738/following{/other_user}","gists_url":"https://api.github.com/users/Alee4738/gists{/gist_id}","starred_url":"https://api.github.com/users/Alee4738/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alee4738/subscriptions","organizations_url":"https://api.github.com/users/Alee4738/orgs","repos_url":"https://api.github.com/users/Alee4738/repos","events_url":"https://api.github.com/users/Alee4738/events{/privacy}","received_events_url":"https://api.github.com/users/Alee4738/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-10-16T05:48:05Z","updated_at":"2018-02-14T03:48:05Z","closed_at":null,"author_association":"OWNER","body":"Errors with undirected data set, all weighted values are doubled for all sets."},"comment":{"url":"https://api.github.com/repos/ucsd-lo-group/social-network-analysis/issues/comments/365487640","html_url":"https://github.com/ucsd-lo-group/social-network-analysis/issues/2#issuecomment-365487640","issue_url":"https://api.github.com/repos/ucsd-lo-group/social-network-analysis/issues/2","id":365487640,"user":{"login":"Alee4738","id":16523442,"avatar_url":"https://avatars0.githubusercontent.com/u/16523442?v=4","gravatar_id":"","url":"https://api.github.com/users/Alee4738","html_url":"https://github.com/Alee4738","followers_url":"https://api.github.com/users/Alee4738/followers","following_url":"https://api.github.com/users/Alee4738/following{/other_user}","gists_url":"https://api.github.com/users/Alee4738/gists{/gist_id}","starred_url":"https://api.github.com/users/Alee4738/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alee4738/subscriptions","organizations_url":"https://api.github.com/users/Alee4738/orgs","repos_url":"https://api.github.com/users/Alee4738/repos","events_url":"https://api.github.com/users/Alee4738/events{/privacy}","received_events_url":"https://api.github.com/users/Alee4738/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T03:48:05Z","updated_at":"2018-02-14T03:48:05Z","author_association":"COLLABORATOR","body":"I looked at the sample data and how the igraph library is using it, and it does not seem like a bug at all. The problem is that the same undirected edge is listed twice, so its weight gets added twice. For example, according to case6-st.csv and case6-weights,csv, there are edges \r\n```\r\n(1,8) (weight 37)\r\n...\r\n(8,1) (weight 37)\r\n```\r\n(1,8) and (8,1) are distinct edges in a directed graph, but they are the same edge in an undirected graph. The problem is with interpretation of the data.\r\n\r\nOne way I think we can solve this is by labeling each sample case file as either directed or undirected. That way, we don't interpret a single file as directed, then as undirected.\r\nFormat of Directed vs. Undirected files:\r\nIn directed files, we can have edges like (1,8) and (8,1), but in undirected files, we should only have a single edge (1,8). "}}
{"actor":{"display_login":"Alee4738"}}