{"action":"created","comment":{"url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/pulls/comments/63963498","id":63963498,"diff_hunk":"@@ -45,22 +45,31 @@ public Model getModel() {\n      * Add the nodes and edges of the graph to the model.\n      *\n      * @param ref the reference string.\n+     * @param depth the depth to draw.\n+     * @return Boolean used for testing purposes.\n      * @throws IOException Throw exception on read GFA read failure.\n-     * @return  Boolean used for testing purposes.\n      */\n     @SuppressFBWarnings(\"OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE\")\n-    public Boolean addGraphComponents(Object ref) throws IOException {\n+    public Boolean addGraphComponents(Object ref, int depth)\n+            throws IOException {\n         Parser parser = new Parser();\n         InputStream inputStream = getClass().getResourceAsStream(\"/TB10.gfa\");\n         HashMap<Integer, Node> startMap = parser.readGFA(inputStream);\n         inputStream.close();\n \n         List<HashMap<Integer, Node>> levelMaps = GraphReducer.createLevelMaps(startMap);\n-        model.setLevelMaps(levelMaps);\n \n         //Reset the model, since we have another reference.\n         model = new Model();\n-        HashMap<Integer, Node> nodeMap = levelMaps.get(levelMaps.size() - 1);\n+        model.setLevelMaps(levelMaps);\n+\n+        if (depth > levelMaps.size() - 1) {\n+            depth = levelMaps.size() - 1;\n+        } else if (depth < 0) {\n+            depth = 0;\n+        }\n+        HashMap<Integer, Node> nodeMap = levelMaps.get(depth);\n+        System.out.println(\"Loading map: \" + depth);","path":"src/main/java/core/graph/Graph.java","position":32,"original_position":32,"commit_id":"3165db0a94c9aa4edfe36feb79684abc5564b0fb","original_commit_id":"3165db0a94c9aa4edfe36feb79684abc5564b0fb","user":{"login":"NielsW-dev","id":9715363,"avatar_url":"https://avatars.githubusercontent.com/u/9715363?v=3","gravatar_id":"","url":"https://api.github.com/users/NielsW-dev","html_url":"https://github.com/NielsW-dev","followers_url":"https://api.github.com/users/NielsW-dev/followers","following_url":"https://api.github.com/users/NielsW-dev/following{/other_user}","gists_url":"https://api.github.com/users/NielsW-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/NielsW-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NielsW-dev/subscriptions","organizations_url":"https://api.github.com/users/NielsW-dev/orgs","repos_url":"https://api.github.com/users/NielsW-dev/repos","events_url":"https://api.github.com/users/NielsW-dev/events{/privacy}","received_events_url":"https://api.github.com/users/NielsW-dev/received_events","type":"User","site_admin":false},"body":"Appears to be a debug comment, should be removed if the code is tested.","created_at":"2016-05-19T22:16:19Z","updated_at":"2016-05-19T22:16:19Z","html_url":"https://github.com/ProgrammingLife2016/PL4-2016/pull/58#discussion_r63963498","pull_request_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/pulls/58","_links":{"self":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/pulls/comments/63963498"},"html":{"href":"https://github.com/ProgrammingLife2016/PL4-2016/pull/58#discussion_r63963498"},"pull_request":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/pulls/58","id":70768882,"html_url":"https://github.com/ProgrammingLife2016/PL4-2016/pull/58","diff_url":"https://github.com/ProgrammingLife2016/PL4-2016/pull/58.diff","patch_url":"https://github.com/ProgrammingLife2016/PL4-2016/pull/58.patch","issue_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/issues/58","number":58,"state":"open","locked":false,"title":"Feature/info box","user":{"login":"tieswesterborg","id":9741454,"avatar_url":"https://avatars.githubusercontent.com/u/9741454?v=3","gravatar_id":"","url":"https://api.github.com/users/tieswesterborg","html_url":"https://github.com/tieswesterborg","followers_url":"https://api.github.com/users/tieswesterborg/followers","following_url":"https://api.github.com/users/tieswesterborg/following{/other_user}","gists_url":"https://api.github.com/users/tieswesterborg/gists{/gist_id}","starred_url":"https://api.github.com/users/tieswesterborg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tieswesterborg/subscriptions","organizations_url":"https://api.github.com/users/tieswesterborg/orgs","repos_url":"https://api.github.com/users/tieswesterborg/repos","events_url":"https://api.github.com/users/tieswesterborg/events{/privacy}","received_events_url":"https://api.github.com/users/tieswesterborg/received_events","type":"User","site_admin":false},"body":"Infobox with info and show other 'zoom levels'","created_at":"2016-05-19T21:31:53Z","updated_at":"2016-05-19T22:16:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"NielsW-dev","id":9715363,"avatar_url":"https://avatars.githubusercontent.com/u/9715363?v=3","gravatar_id":"","url":"https://api.github.com/users/NielsW-dev","html_url":"https://github.com/NielsW-dev","followers_url":"https://api.github.com/users/NielsW-dev/followers","following_url":"https://api.github.com/users/NielsW-dev/following{/other_user}","gists_url":"https://api.github.com/users/NielsW-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/NielsW-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NielsW-dev/subscriptions","organizations_url":"https://api.github.com/users/NielsW-dev/orgs","repos_url":"https://api.github.com/users/NielsW-dev/repos","events_url":"https://api.github.com/users/NielsW-dev/events{/privacy}","received_events_url":"https://api.github.com/users/NielsW-dev/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/milestones/3","html_url":"https://github.com/ProgrammingLife2016/PL4-2016/milestones/Sprint%205","labels_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/milestones/3/labels","id":1771248,"number":3,"title":"Sprint 5","description":null,"creator":{"login":"tieswesterborg","id":9741454,"avatar_url":"https://avatars.githubusercontent.com/u/9741454?v=3","gravatar_id":"","url":"https://api.github.com/users/tieswesterborg","html_url":"https://github.com/tieswesterborg","followers_url":"https://api.github.com/users/tieswesterborg/followers","following_url":"https://api.github.com/users/tieswesterborg/following{/other_user}","gists_url":"https://api.github.com/users/tieswesterborg/gists{/gist_id}","starred_url":"https://api.github.com/users/tieswesterborg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tieswesterborg/subscriptions","organizations_url":"https://api.github.com/users/tieswesterborg/orgs","repos_url":"https://api.github.com/users/tieswesterborg/repos","events_url":"https://api.github.com/users/tieswesterborg/events{/privacy}","received_events_url":"https://api.github.com/users/tieswesterborg/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":4,"state":"open","created_at":"2016-05-17T10:06:45Z","updated_at":"2016-05-19T21:48:07Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/pulls/58/commits","review_comments_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/pulls/58/comments","review_comment_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/issues/58/comments","statuses_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/statuses/3165db0a94c9aa4edfe36feb79684abc5564b0fb","head":{"label":"ProgrammingLife2016:feature/infoBox","ref":"feature/infoBox","sha":"3165db0a94c9aa4edfe36feb79684abc5564b0fb","user":{"login":"ProgrammingLife2016","id":17279081,"avatar_url":"https://avatars.githubusercontent.com/u/17279081?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgrammingLife2016","html_url":"https://github.com/ProgrammingLife2016","followers_url":"https://api.github.com/users/ProgrammingLife2016/followers","following_url":"https://api.github.com/users/ProgrammingLife2016/following{/other_user}","gists_url":"https://api.github.com/users/ProgrammingLife2016/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgrammingLife2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgrammingLife2016/subscriptions","organizations_url":"https://api.github.com/users/ProgrammingLife2016/orgs","repos_url":"https://api.github.com/users/ProgrammingLife2016/repos","events_url":"https://api.github.com/users/ProgrammingLife2016/events{/privacy}","received_events_url":"https://api.github.com/users/ProgrammingLife2016/received_events","type":"Organization","site_admin":false},"repo":{"id":56146168,"name":"PL4-2016","full_name":"ProgrammingLife2016/PL4-2016","owner":{"login":"ProgrammingLife2016","id":17279081,"avatar_url":"https://avatars.githubusercontent.com/u/17279081?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgrammingLife2016","html_url":"https://github.com/ProgrammingLife2016","followers_url":"https://api.github.com/users/ProgrammingLife2016/followers","following_url":"https://api.github.com/users/ProgrammingLife2016/following{/other_user}","gists_url":"https://api.github.com/users/ProgrammingLife2016/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgrammingLife2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgrammingLife2016/subscriptions","organizations_url":"https://api.github.com/users/ProgrammingLife2016/orgs","repos_url":"https://api.github.com/users/ProgrammingLife2016/repos","events_url":"https://api.github.com/users/ProgrammingLife2016/events{/privacy}","received_events_url":"https://api.github.com/users/ProgrammingLife2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ProgrammingLife2016/PL4-2016","description":"","fork":false,"url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016","forks_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/forks","keys_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/teams","hooks_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/hooks","issue_events_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/issues/events{/number}","events_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/events","assignees_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/assignees{/user}","branches_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/branches{/branch}","tags_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/tags","blobs_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/statuses/{sha}","languages_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/languages","stargazers_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/stargazers","contributors_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/contributors","subscribers_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/subscribers","subscription_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/subscription","commits_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/contents/{+path}","compare_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/merges","archive_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/downloads","issues_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/issues{/number}","pulls_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/pulls{/number}","milestones_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/milestones{/number}","notifications_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/labels{/name}","releases_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/releases{/id}","deployments_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/deployments","created_at":"2016-04-13T11:29:48Z","updated_at":"2016-04-21T14:51:32Z","pushed_at":"2016-05-19T21:31:53Z","git_url":"git://github.com/ProgrammingLife2016/PL4-2016.git","ssh_url":"git@github.com:ProgrammingLife2016/PL4-2016.git","clone_url":"https://github.com/ProgrammingLife2016/PL4-2016.git","svn_url":"https://github.com/ProgrammingLife2016/PL4-2016","homepage":null,"size":77176,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":16,"forks":1,"open_issues":16,"watchers":0,"default_branch":"master"}},"base":{"label":"ProgrammingLife2016:master","ref":"master","sha":"bcef9ddbfb330460be44d6548a7c2b36d736df51","user":{"login":"ProgrammingLife2016","id":17279081,"avatar_url":"https://avatars.githubusercontent.com/u/17279081?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgrammingLife2016","html_url":"https://github.com/ProgrammingLife2016","followers_url":"https://api.github.com/users/ProgrammingLife2016/followers","following_url":"https://api.github.com/users/ProgrammingLife2016/following{/other_user}","gists_url":"https://api.github.com/users/ProgrammingLife2016/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgrammingLife2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgrammingLife2016/subscriptions","organizations_url":"https://api.github.com/users/ProgrammingLife2016/orgs","repos_url":"https://api.github.com/users/ProgrammingLife2016/repos","events_url":"https://api.github.com/users/ProgrammingLife2016/events{/privacy}","received_events_url":"https://api.github.com/users/ProgrammingLife2016/received_events","type":"Organization","site_admin":false},"repo":{"id":56146168,"name":"PL4-2016","full_name":"ProgrammingLife2016/PL4-2016","owner":{"login":"ProgrammingLife2016","id":17279081,"avatar_url":"https://avatars.githubusercontent.com/u/17279081?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgrammingLife2016","html_url":"https://github.com/ProgrammingLife2016","followers_url":"https://api.github.com/users/ProgrammingLife2016/followers","following_url":"https://api.github.com/users/ProgrammingLife2016/following{/other_user}","gists_url":"https://api.github.com/users/ProgrammingLife2016/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgrammingLife2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgrammingLife2016/subscriptions","organizations_url":"https://api.github.com/users/ProgrammingLife2016/orgs","repos_url":"https://api.github.com/users/ProgrammingLife2016/repos","events_url":"https://api.github.com/users/ProgrammingLife2016/events{/privacy}","received_events_url":"https://api.github.com/users/ProgrammingLife2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ProgrammingLife2016/PL4-2016","description":"","fork":false,"url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016","forks_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/forks","keys_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/teams","hooks_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/hooks","issue_events_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/issues/events{/number}","events_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/events","assignees_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/assignees{/user}","branches_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/branches{/branch}","tags_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/tags","blobs_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/statuses/{sha}","languages_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/languages","stargazers_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/stargazers","contributors_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/contributors","subscribers_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/subscribers","subscription_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/subscription","commits_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/contents/{+path}","compare_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/merges","archive_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/downloads","issues_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/issues{/number}","pulls_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/pulls{/number}","milestones_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/milestones{/number}","notifications_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/labels{/name}","releases_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/releases{/id}","deployments_url":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/deployments","created_at":"2016-04-13T11:29:48Z","updated_at":"2016-04-21T14:51:32Z","pushed_at":"2016-05-19T21:31:53Z","git_url":"git://github.com/ProgrammingLife2016/PL4-2016.git","ssh_url":"git@github.com:ProgrammingLife2016/PL4-2016.git","clone_url":"https://github.com/ProgrammingLife2016/PL4-2016.git","svn_url":"https://github.com/ProgrammingLife2016/PL4-2016","homepage":null,"size":77176,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":16,"forks":1,"open_issues":16,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/pulls/58"},"html":{"href":"https://github.com/ProgrammingLife2016/PL4-2016/pull/58"},"issue":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/issues/58"},"comments":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL4-2016/statuses/3165db0a94c9aa4edfe36feb79684abc5564b0fb"}}}}
{"actor":{"display_login":"NielsW-dev"}}