You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -201,6 +205,7 @@ No need to understand most of the code in this class.
201
205
But we see that starting at https://github.com/seinecle/gephi/blob/enclosing-circles-opengl/modules/VisualizationImpl/src/main/java/org/gephi/visualization/opengl/CompatibilityEngine.java#L194[line 194], a loop on nodes starts:
202
206
203
207
We will put nodes in a map (declared above, at https://github.com/seinecle/gephi/blob/enclosing-circles-opengl/modules/VisualizationImpl/src/main/java/org/gephi/visualization/opengl/CompatibilityEngine.java#L155[line 155]) where:
208
+
204
209
- keys are the name of the cluster nodes belong too,
205
210
- values are the Set of Nodes corresponding to the cluster.
The logic of the circle creation in OpenGL can be understood rather easily, by copying and modyfying the code used just above for the creation of nodes, and by looking at the online documentation on http://www.openglprojects.in/2014/03/draw-circle-opengl.html#gsc.tab=0[how to create shapes in OpenGL].
217
222
218
223
//ST: !
219
-
That's it. Now just run Gephi from source as we did before. From Gephi, open a network where nodes have a "cluster" attribute, and Gephi will draw circles around nodes from the same clusters:
224
+
That's it. Now just run Gephi from source as we did before. From Gephi, open a network where nodes have a "Modularity Class" attribute, and Gephi will draw circles around nodes from the same clusters:
@@ -201,6 +205,7 @@ No need to understand most of the code in this class.
201
205
But we see that starting at https://github.com/seinecle/gephi/blob/enclosing-circles-opengl/modules/VisualizationImpl/src/main/java/org/gephi/visualization/opengl/CompatibilityEngine.java#L194[line 194], a loop on nodes starts:
202
206
203
207
We will put nodes in a map (declared above, at https://github.com/seinecle/gephi/blob/enclosing-circles-opengl/modules/VisualizationImpl/src/main/java/org/gephi/visualization/opengl/CompatibilityEngine.java#L155[line 155]) where:
208
+
204
209
- keys are the name of the cluster nodes belong too,
205
210
- values are the Set of Nodes corresponding to the cluster.
The logic of the circle creation in OpenGL can be understood rather easily, by copying and modyfying the code used just above for the creation of nodes, and by looking at the online documentation on http://www.openglprojects.in/2014/03/draw-circle-opengl.html#gsc.tab=0[how to create shapes in OpenGL].
217
222
218
223
//ST: !
219
-
That's it. Now just run Gephi from source as we did before. From Gephi, open a network where nodes have a "cluster" attribute, and Gephi will draw circles around nodes from the same clusters:
224
+
That's it. Now just run Gephi from source as we did before. From Gephi, open a network where nodes have a "Modularity Class" attribute, and Gephi will draw circles around nodes from the same clusters:
<section><divclass="paragraph"><p>For this tutorial you need:</p></div>
101
+
<section><divclass="paragraph"><p>For this tutorial you will need:</p></div>
102
102
<divclass="ulist"><ul><li><p>some knowledge of Java.</p></li><li><p>NetBeans installed (<ahref="https://dl.dropboxusercontent.com/u/28091845/coursera/codapps/session%201/module%201%20-%20installing%20NetBeans%20ans%20Codename%20One%20on%20a%20PC.pdf">up to date instructions here</a>). Eclipse, IntelliJ or any other code editor won’t do.</p></li><li><p>a good internet connection since we will download a lot of small dependencies.</p></li><li><p>no Github account is necessary (if you have one, fork Gephi before doing all the steps below).</p></li></ul></div></section>
103
103
<sectionid="_downloading_the_source_code"><h2>Downloading the source code</h2></section>
104
104
<section><divclass="olist arabic"><olclass="arabic"><li><p>Open NetBeans.</p></li><li><p>In NetBeans, go to <code>Team → Git → Clone</code></p></li></ol></div>
0 commit comments