{"action":"created","comment":{"url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/pulls/comments/136839928","pull_request_review_id":60435006,"id":136839928,"diff_hunk":"@@ -660,18 +653,17 @@ private void createKSPSubgraph(ArrayList<Path> paths) {\n \t\t\t\tfor (CyEdge edge : edges){\n \t\t\t\t\t// verifies the edges direction\n \t\t\t\t\tif (edge.getSource().equals(node1) && edge.getTarget().equals(node2))\n-\t\t\t\t\t\tedgesToAdd.add(edge);\n+\t\t\t\t\t\toriginalNetwork.getRow(edge).set(CyNetwork.SELECTED, true);\n \t\t\t\t}\n \t\t\t\t// also add all of the undirected edges from node1 to node2\n-\t\t\t\tedgesToAdd.addAll(originalNetwork.getConnectingEdgeList(node1, node2, CyEdge.Type.UNDIRECTED));\n+\t\t\t\tedges = originalNetwork.getConnectingEdgeList(node1, node2, CyEdge.Type.UNDIRECTED);\n+\t\t\t\tfor (CyEdge edge : edges) originalNetwork.getRow(edge).set(CyNetwork.SELECTED, true);\n \t\t\t}\n \t\t}\n \n-\t\tkspSubgraph = root.addSubNetwork(nodesToAdd, edgesToAdd);\n-\n \t\t// sets the network name\n-\t\tString subgraphName = \"PathLinker-subnetwork-\" + k + \"-paths\";\n-\t\tkspSubgraph.getRow(kspSubgraph).set(CyNetwork.NAME, subgraphName);\n+\t\t//String subgraphName = \"PathLinker-subnetwork-\" + k + \"-paths\";\n+\t\t//kspSubgraph.getRow(kspSubgraph).set(CyNetwork.NAME, subgraphName);","path":"src/main/java/com/dpgil/pathlinker/path_linker/internal/PathLinkerModel.java","position":47,"original_position":47,"commit_id":"3bdcf90fce8f9615185f0430e443ff9919ec87d9","original_commit_id":"3bdcf90fce8f9615185f0430e443ff9919ec87d9","user":{"login":"jlaw9","id":7592559,"avatar_url":"https://avatars3.githubusercontent.com/u/7592559?v=4","gravatar_id":"","url":"https://api.github.com/users/jlaw9","html_url":"https://github.com/jlaw9","followers_url":"https://api.github.com/users/jlaw9/followers","following_url":"https://api.github.com/users/jlaw9/following{/other_user}","gists_url":"https://api.github.com/users/jlaw9/gists{/gist_id}","starred_url":"https://api.github.com/users/jlaw9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlaw9/subscriptions","organizations_url":"https://api.github.com/users/jlaw9/orgs","repos_url":"https://api.github.com/users/jlaw9/repos","events_url":"https://api.github.com/users/jlaw9/events{/privacy}","received_events_url":"https://api.github.com/users/jlaw9/received_events","type":"User","site_admin":false},"body":"You can remove the comments for setting the name here","created_at":"2017-09-04T15:05:23Z","updated_at":"2017-09-04T15:05:23Z","html_url":"https://github.com/Murali-group/PathLinker-Cytoscape/pull/45#discussion_r136839928","pull_request_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/pulls/45","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/pulls/comments/136839928"},"html":{"href":"https://github.com/Murali-group/PathLinker-Cytoscape/pull/45#discussion_r136839928"},"pull_request":{"href":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/pulls/45","id":138780366,"html_url":"https://github.com/Murali-group/PathLinker-Cytoscape/pull/45","diff_url":"https://github.com/Murali-group/PathLinker-Cytoscape/pull/45.diff","patch_url":"https://github.com/Murali-group/PathLinker-Cytoscape/pull/45.patch","issue_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/issues/45","number":45,"state":"open","locked":false,"title":"Pathlinker #33: Apply style of original network to pathlinker subnetwork","user":{"login":"LHuang2019","id":14338820,"avatar_url":"https://avatars2.githubusercontent.com/u/14338820?v=4","gravatar_id":"","url":"https://api.github.com/users/LHuang2019","html_url":"https://github.com/LHuang2019","followers_url":"https://api.github.com/users/LHuang2019/followers","following_url":"https://api.github.com/users/LHuang2019/following{/other_user}","gists_url":"https://api.github.com/users/LHuang2019/gists{/gist_id}","starred_url":"https://api.github.com/users/LHuang2019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LHuang2019/subscriptions","organizations_url":"https://api.github.com/users/LHuang2019/orgs","repos_url":"https://api.github.com/users/LHuang2019/repos","events_url":"https://api.github.com/users/LHuang2019/events{/privacy}","received_events_url":"https://api.github.com/users/LHuang2019/received_events","type":"User","site_admin":false},"body":"- Instead of creating a new network, now the program generates a sub-network that copies all styles include bypass values.\r\n\r\n- creates static variable _kspSubgraph and _kspSubgraphView for better referencing. Which is useful considering we could get rid of \"not generate sub-graph\" option in the future. \r\n\r\n- Refactor variable name _originalNetwork -> _currentNetwork in PathLinkerResultPanel class for clarity purposes. The result table is always referencing to the sub-graph that is generated with it. Also useful considering the \"not generate sub-graph\" could be gone.\r\n\r\n- PathLinkerControlPanel class line 677 - 679 uses a task iterator to create the sub-network. Line 682 - 696 uses a hack to obtain the sub-network that is been created. Then the rest are for applying layouts and such to the new sub-network.","created_at":"2017-08-31T22:29:17Z","updated_at":"2017-09-04T15:05:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c7d78ac8560b1b322dcae71f774742f97049bf2","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/pulls/45/commits","review_comments_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/pulls/45/comments","review_comment_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/issues/45/comments","statuses_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/statuses/3bdcf90fce8f9615185f0430e443ff9919ec87d9","head":{"label":"LHuang2019:pathlinker-33","ref":"pathlinker-33","sha":"3bdcf90fce8f9615185f0430e443ff9919ec87d9","user":{"login":"LHuang2019","id":14338820,"avatar_url":"https://avatars2.githubusercontent.com/u/14338820?v=4","gravatar_id":"","url":"https://api.github.com/users/LHuang2019","html_url":"https://github.com/LHuang2019","followers_url":"https://api.github.com/users/LHuang2019/followers","following_url":"https://api.github.com/users/LHuang2019/following{/other_user}","gists_url":"https://api.github.com/users/LHuang2019/gists{/gist_id}","starred_url":"https://api.github.com/users/LHuang2019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LHuang2019/subscriptions","organizations_url":"https://api.github.com/users/LHuang2019/orgs","repos_url":"https://api.github.com/users/LHuang2019/repos","events_url":"https://api.github.com/users/LHuang2019/events{/privacy}","received_events_url":"https://api.github.com/users/LHuang2019/received_events","type":"User","site_admin":false},"repo":{"id":97150657,"name":"PathLinker-Cytoscape","full_name":"LHuang2019/PathLinker-Cytoscape","owner":{"login":"LHuang2019","id":14338820,"avatar_url":"https://avatars2.githubusercontent.com/u/14338820?v=4","gravatar_id":"","url":"https://api.github.com/users/LHuang2019","html_url":"https://github.com/LHuang2019","followers_url":"https://api.github.com/users/LHuang2019/followers","following_url":"https://api.github.com/users/LHuang2019/following{/other_user}","gists_url":"https://api.github.com/users/LHuang2019/gists{/gist_id}","starred_url":"https://api.github.com/users/LHuang2019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LHuang2019/subscriptions","organizations_url":"https://api.github.com/users/LHuang2019/orgs","repos_url":"https://api.github.com/users/LHuang2019/repos","events_url":"https://api.github.com/users/LHuang2019/events{/privacy}","received_events_url":"https://api.github.com/users/LHuang2019/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LHuang2019/PathLinker-Cytoscape","description":"Cytoscape plugin for PathLinker","fork":true,"url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape","forks_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/forks","keys_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/teams","hooks_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/hooks","issue_events_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/issues/events{/number}","events_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/events","assignees_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/assignees{/user}","branches_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/branches{/branch}","tags_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/tags","blobs_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/git/refs{/sha}","trees_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/statuses/{sha}","languages_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/languages","stargazers_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/stargazers","contributors_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/contributors","subscribers_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/subscribers","subscription_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/subscription","commits_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/commits{/sha}","git_commits_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/git/commits{/sha}","comments_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/comments{/number}","issue_comment_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/issues/comments{/number}","contents_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/contents/{+path}","compare_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/merges","archive_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/downloads","issues_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/issues{/number}","pulls_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/pulls{/number}","milestones_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/milestones{/number}","notifications_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/labels{/name}","releases_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/releases{/id}","deployments_url":"https://api.github.com/repos/LHuang2019/PathLinker-Cytoscape/deployments","created_at":"2017-07-13T17:52:20Z","updated_at":"2017-07-13T17:52:22Z","pushed_at":"2017-09-04T14:08:19Z","git_url":"git://github.com/LHuang2019/PathLinker-Cytoscape.git","ssh_url":"git@github.com:LHuang2019/PathLinker-Cytoscape.git","clone_url":"https://github.com/LHuang2019/PathLinker-Cytoscape.git","svn_url":"https://github.com/LHuang2019/PathLinker-Cytoscape","homepage":null,"size":3941,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Murali-group:master","ref":"master","sha":"da7afa0ea8dd2b3dafe2d1efba395f50ccbe6118","user":{"login":"Murali-group","id":13351601,"avatar_url":"https://avatars2.githubusercontent.com/u/13351601?v=4","gravatar_id":"","url":"https://api.github.com/users/Murali-group","html_url":"https://github.com/Murali-group","followers_url":"https://api.github.com/users/Murali-group/followers","following_url":"https://api.github.com/users/Murali-group/following{/other_user}","gists_url":"https://api.github.com/users/Murali-group/gists{/gist_id}","starred_url":"https://api.github.com/users/Murali-group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Murali-group/subscriptions","organizations_url":"https://api.github.com/users/Murali-group/orgs","repos_url":"https://api.github.com/users/Murali-group/repos","events_url":"https://api.github.com/users/Murali-group/events{/privacy}","received_events_url":"https://api.github.com/users/Murali-group/received_events","type":"Organization","site_admin":false},"repo":{"id":41810123,"name":"PathLinker-Cytoscape","full_name":"Murali-group/PathLinker-Cytoscape","owner":{"login":"Murali-group","id":13351601,"avatar_url":"https://avatars2.githubusercontent.com/u/13351601?v=4","gravatar_id":"","url":"https://api.github.com/users/Murali-group","html_url":"https://github.com/Murali-group","followers_url":"https://api.github.com/users/Murali-group/followers","following_url":"https://api.github.com/users/Murali-group/following{/other_user}","gists_url":"https://api.github.com/users/Murali-group/gists{/gist_id}","starred_url":"https://api.github.com/users/Murali-group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Murali-group/subscriptions","organizations_url":"https://api.github.com/users/Murali-group/orgs","repos_url":"https://api.github.com/users/Murali-group/repos","events_url":"https://api.github.com/users/Murali-group/events{/privacy}","received_events_url":"https://api.github.com/users/Murali-group/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Murali-group/PathLinker-Cytoscape","description":"Cytoscape plugin for PathLinker","fork":false,"url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape","forks_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/forks","keys_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/teams","hooks_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/hooks","issue_events_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/issues/events{/number}","events_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/events","assignees_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/assignees{/user}","branches_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/branches{/branch}","tags_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/tags","blobs_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/git/refs{/sha}","trees_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/statuses/{sha}","languages_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/languages","stargazers_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/stargazers","contributors_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/contributors","subscribers_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/subscribers","subscription_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/subscription","commits_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/commits{/sha}","git_commits_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/git/commits{/sha}","comments_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/comments{/number}","issue_comment_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/issues/comments{/number}","contents_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/contents/{+path}","compare_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/merges","archive_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/downloads","issues_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/issues{/number}","pulls_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/pulls{/number}","milestones_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/milestones{/number}","notifications_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/labels{/name}","releases_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/releases{/id}","deployments_url":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/deployments","created_at":"2015-09-02T15:40:17Z","updated_at":"2017-02-05T09:38:58Z","pushed_at":"2017-09-04T14:08:20Z","git_url":"git://github.com/Murali-group/PathLinker-Cytoscape.git","ssh_url":"git@github.com:Murali-group/PathLinker-Cytoscape.git","clone_url":"https://github.com/Murali-group/PathLinker-Cytoscape.git","svn_url":"https://github.com/Murali-group/PathLinker-Cytoscape","homepage":null,"size":3995,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":8,"forks":4,"open_issues":8,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/pulls/45"},"html":{"href":"https://github.com/Murali-group/PathLinker-Cytoscape/pull/45"},"issue":{"href":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/issues/45"},"comments":{"href":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/Murali-group/PathLinker-Cytoscape/statuses/3bdcf90fce8f9615185f0430e443ff9919ec87d9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jlaw9"}}