diff --git a/gs-ui-1.3/gs-ui-1.3-javadoc.jar b/gs-ui-1.3/gs-ui-1.3-javadoc.jar
new file mode 100644
index 0000000..f1d03f0
Binary files /dev/null and b/gs-ui-1.3/gs-ui-1.3-javadoc.jar differ
diff --git a/gs-ui-1.3/gs-ui-1.3-javadoc.jar.asc b/gs-ui-1.3/gs-ui-1.3-javadoc.jar.asc
new file mode 100644
index 0000000..54170e5
--- /dev/null
+++ b/gs-ui-1.3/gs-ui-1.3-javadoc.jar.asc
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iQIcBAABCAAGBQJVI85YAAoJEFcic6tDtcUcvnoP+QFbmAiUFHOY5NzZ+TXory/+
+vPys1yfmc3bDtCrVoSSY7IDBXOKHgWyFbpHvIriFB/03NdbOWeKv4wkwLzaZ1UQB
+03fuHjLbzzXgXx5gtH5kjzar04DOMVOt/uAZObtgF+zksHbeJgTX5I/puj2qXYSM
+T1d7wh2hqufxwXJFSHfsKO0RS4Q35eqRJffprZG7o40j/1Jew05dxm+7n7jkNyF8
+zXtAEUAd8XCFxyxM/4Mig6aXJn1TZ4GOPgRt/N5WH3MJ12qPIakPUNU7qCyK+VHS
+habbi07pmQ0q9maYp1zKcVauOd3jNeDr1jHrvJRZN2oK70jBhNNRMn26WNKU8SFt
+YwlxlO3jkzmuKlML2C86eQpLYnqiqEY7080i0BOvWgWuPIFQgBrUOLnBqaNiEl+H
+wy0OTWRXtx9nmsIl08OdmqF5IYIyXnUA3Rg9WdxM6dL2HANyNiBf0TT/g7zhrjID
+YxZaSI9sb/DFBg6CDAqKR9B9qWo6SceLEX4LYK6uL3Ar9u9QCM+v7gDf+5vs97nt
+tQkT/uhPKgFfFuU1Cflm3qlh7/x63qgtq0qT5P3cljKl3Zr7qVGdOuLlqGJyvV6w
+A/7pnGK3QeVa8ygir/QZQDoNXla6busU7NWFGcejRL6smoJ5GBPh3bDIIrJyB74/
+j263b0HdiYvEsQHo8V/B
+=ddRY
+-----END PGP SIGNATURE-----
diff --git a/gs-ui-1.3/gs-ui-1.3-sources.jar b/gs-ui-1.3/gs-ui-1.3-sources.jar
new file mode 100644
index 0000000..3ea95c3
Binary files /dev/null and b/gs-ui-1.3/gs-ui-1.3-sources.jar differ
diff --git a/gs-ui-1.3/gs-ui-1.3-sources.jar.asc b/gs-ui-1.3/gs-ui-1.3-sources.jar.asc
new file mode 100644
index 0000000..2f340b6
--- /dev/null
+++ b/gs-ui-1.3/gs-ui-1.3-sources.jar.asc
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iQIcBAABCAAGBQJVI84tAAoJEFcic6tDtcUcP2kP/0YnPFOaKqxqIio68UwHZp7Y
+fMfp1a1pJt1Tu93fyr/zGA7MCrJ020pwW4V8qFJrsc/Bz2mV8Q013vTTBc3g/zmy
+aClw1WItf5IrNIJ25s66U2xmqzBSzcEKjPIeI6aQfBRa10yQbLQ80hw0XtzoS55p
++ZgtgnoXfgvEDsOi/n5pc24P37JHbX2ZHVHFu2+hi5vhVdih8BUnRntf5Kc/t47r
+d/vGEIhEe89UgWJOwsrkkaMDI/9O1/c9A7uvJIrT/nvRLBEbQsyeuZZsmCM0gP5d
+ugetYRj6Y8/j0nMspQqYfVATdlTKQCr5rUhREB49hatU8mt9bBIkdXzpYl784zX5
+Vi5HmVBLQx9ETBgItSYfifsT80kcnYu+azJzSXSQiP2Kpyphi4+Za7o+jTGucW/M
+ncKciq3kZOVlBpodn2k4Bl0x+uDwMrvyF4roR7X05OPwAQQpRS6Wz4hnDFz24pbC
+vSggRZtoDLWdluY9/VgPpzMkC9BZnzwY8mgHX7GMq+gQFF9/BTJhvDx2MTU8qOF0
+P149EIiYL4d47L7djtiale07b3KN1muMeh2d3yFSAwJfL/X2I98eZDgOwz15EGWG
+7KyHeJSUzOjfhIk6OGqmol3WrERsE6RRmdOHFfboCdd2yLbtCgiBBve9GnwE63ew
+p7sjKHK+gu8hobzH8Jla
+=8Uq+
+-----END PGP SIGNATURE-----
diff --git a/gs-ui-1.3/gs-ui-1.3.jar b/gs-ui-1.3/gs-ui-1.3.jar
new file mode 100644
index 0000000..4661b87
Binary files /dev/null and b/gs-ui-1.3/gs-ui-1.3.jar differ
diff --git a/gs-ui-1.3/gs-ui-1.3.jar.asc b/gs-ui-1.3/gs-ui-1.3.jar.asc
new file mode 100644
index 0000000..71d2ced
--- /dev/null
+++ b/gs-ui-1.3/gs-ui-1.3.jar.asc
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iQIcBAABCAAGBQJVI84tAAoJEFcic6tDtcUcGOYQAJxx6xLnze2kiv6dWSaiJMwc
+Lq5IrJPAWn1Ed89g3Ay2E8cYSTwYxGafBkGTyL3KyefS6W2xrnJjhHOj4GckZqSU
+O8x6vLJL5/i4uXY3EtN594nRH23U1fXCFz+oVXBREprrUZ9Z+x3DiD3zzjMHCI9H
+Js349kbLXkTM9JNdA9I7Zf4rJyENwQznG5Q7X6s2YHebulh9rdJnG9aVGm66Hx5+
+AktlcctqwUd9fdK50lo+UBHOI/RksX88WR+JyNh/mMzRdLJuHyxotAPQl9sXnJdq
+qX7P4vI2i4V2parPuk4JFe0weJ0NQCYL//0E81KPABj2F859K6DtsoHn8Zqw5dtw
+J0Luj5GNGPirQRPgDdmVc7ewKAKOdJAFmejMAR8ShKNK9E1D+gp/wgbzgsQqy9t0
+f47d2dWOk1WZa5Q5LzU8gpJc4IV7t6EAbbSMj4uS+gkVWpTwRnQcUMl0dsOg8fw+
+Z9bL6zenamyD8boE7e/jCrDMaYvZCm/hD9Y9qtWupbYYX3c95Yy3WTeQSITBAq11
+gdHG6GDPdb3A1wm+h8oI2xVLgB/7Al1a/jnppnDuORZBhAdLKXevef6dYyIa5Ppc
+PzYNwjqbybARLW9HtjGtKqGNt8EzMYyipC9eaGYEqJC2ZkcYLKhSg1UM1ItJTXmr
+6AuIR0liKH3Oyp+Q4KxH
+=Qoor
+-----END PGP SIGNATURE-----
diff --git a/gs-ui-1.3/gs-ui-1.3.pom b/gs-ui-1.3/gs-ui-1.3.pom
new file mode 100644
index 0000000..c32c408
--- /dev/null
+++ b/gs-ui-1.3/gs-ui-1.3.pom
@@ -0,0 +1,369 @@
+
+
+
+ 4.0.0
+
+
+ org.sonatype.oss
+ oss-parent
+ 7
+
+
+ org.graphstream
+ gs-ui
+ 1.3
+
+ gs-ui
+
+ The GraphStream library. With GraphStream you deal with
+ graphs. Static and Dynamic. You create them from scratch, from a file
+ or any source. You display and render them.
+
+ http://graphstream-project.org
+
+
+
+ scm:git:git://github.com/graphstream/gs-ui.git
+ scm:git:git://github.com/graphstream/gs-ui.git
+ https://github.com/graphstream/gs-ui
+
+
+
+
+ github
+ https://github.com/graphstream/gs-core/issues
+
+
+
+ UTF-8
+ 2.10.1
+
+
+
+
+
+ sbalev
+ Stefan Balev
+ stefan.balev@graphstream-project.org
+ LITIS
+ http://www.litislab.eu
+
+
+
+ jbaudry
+ Julien Baudry
+ julien.baudry@graphstream-project.org
+ LITIS
+ http://www.litislab.eu
+
+
+
+ adutot
+ Antoine Dutot
+ antoine.dutot@graphstream-project.org
+ LITIS
+ http://www.litislab.eu
+
+
+
+ ypigne
+ Yoann Pigné
+ yoann.pigne@graphstream-project.org
+ University of Luxembourg
+ http://www.uni.lu
+
+
+
+ gsavin
+ Guilhelm Savin
+ guilhelm.savin@graphstream-project.org
+ LITIS
+ http://www.litislab.eu
+
+
+
+
+
+ LGPL3
+ http://www.gnu.org/copyleft/lesser.html
+
+
+
+ Cecill-C
+ http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html
+
+
+
+
+
+
+
+ proguard
+
+
+
+ com.github.wvengen
+ proguard-maven-plugin
+
+
+ package
+
+ proguard
+
+
+
+
+
+
+
+
+
+ ${java.home}/lib/rt.jar
+
+
+
+
+
+
+
+
+ nodeps
+
+
+
+ ../scalalib
+
+ scala/**/*.class
+
+
+
+
+
+
+
+ release
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+
+ ]]>
+ false
+
+
+
+ sign-artifacts
+ package
+
+ sign
+
+
+
+
+
+
+
+
+ scala-2.9.0
+
+ 2.9.0
+
+
+
+ scala-2.10.1
+
+ 2.10.1
+
+
+
+
+
+ src-scala
+ bin/classes
+ compile
+
+
+
+
+
+
+
+
+ maven-compiler-plugin
+ 3.3
+
+ 1.7
+ 1.7
+
+
+
+
+ maven-eclipse-plugin
+ org.apache.maven.plugins
+ 2.9
+
+
+ **
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ 2.6
+
+
+ org/graphstream/ui/j2dviewer/renderer/test
+ org/graphstream/ui/j2dviewer/renderer/test/**
+
+
+
+
+ default-jar
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.10.2
+
+
+
+ complexity
+ a
+ Computational Complexity :
+
+
+ reference
+ a
+ Scientific Reference :
+
+
+ true
+ false
+ false
+ false
+ false
+ false
+ public
+ 1.5
+ true
+
+ true
+ The GraphStream ${project.version} API
+
+ **.scala
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 2.18.1
+
+
+
+ org.scala-tools
+ maven-scala-plugin
+ 2.15.2
+
+
+
+ compile
+ testCompile
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-clean-plugin
+ 2.6.1
+
+
+
+ bin/
+
+ classes.timestamp
+
+ false
+
+
+
+
+
+
+
+
+
+ junit
+ junit
+ 4.12
+ false
+
+
+ org.graphstream
+ gs-core
+ ${project.version}
+ false
+
+
+ org.graphstream
+ gs-algo
+ ${project.version}
+ false
+
+
+ org.scala-lang
+ scala-library
+ ${scala.version}
+ false
+
+
+
diff --git a/gs-ui-1.3/gs-ui-1.3.pom.asc b/gs-ui-1.3/gs-ui-1.3.pom.asc
new file mode 100644
index 0000000..92ef141
--- /dev/null
+++ b/gs-ui-1.3/gs-ui-1.3.pom.asc
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iQIcBAABCAAGBQJVI84tAAoJEFcic6tDtcUcTBoP/2T2fMfMkEevIGuDkvwnDTlv
+M2EVbe8zvUuYoX9AWtvv5K2SmsilCfjhw1mfgcMOa2ckgs2ke6F6u+cAY08yKd/7
+prFUxN8BAVmIp7Z7Dk+APOjfyTKbxCug/zESseN6WUb1Q2z2fsSdDLvHE5olTM+J
+Kbi0w7xrBKD0/4WZ17v/P8FC2u2mtQAi9a4/OAqR7bmh09CRfEI9M4RfPfyg/Rjx
+O/vxdyPO8TdRlDYfrL992At+GvsEPO1nfRJPP2CHHZEB9xWziET0MDQxrLFicE8G
+sRVZuJV+Hp7Z7XDWk63VTtcECCrQbUjX1PGGXlIZsamouUosnuf9WeCtlpgQAYQd
+zK6O394Z2rHCF/2ZxIKJle6z0wr7YRg+X/O8nLO4scLPU+JYMn3jKmAQBFGEKJKe
+l5lVbYRlRPgFt0wk13G5X+/nvhOrfN+IF1BASGLC/R0aybqz7iPnYxWEDJrFayPq
+zJeQJsClq5QeZYgYlNATB/9hKgEjuvryUE+mQ7ZMiD0zYAvcfcOqPetqNxWv/O7r
+JYZetfE0CDPEr+p6IOCGX0xghFxpMk+fMxTwbnD7nUqXubykfqWytZXlMap01ycG
+okVD0zDcCTKA4n5EeCGeCzyrDbvq8xjm/fR1uO3qjzKSNbpX/3cjtwp70kH/xQT8
+r6Lo4IgCX7utoBQTDZrT
+=lZ+K
+-----END PGP SIGNATURE-----
diff --git a/main/Main.java b/main/Main.java
index 26fcc5b..ff9217e 100644
--- a/main/Main.java
+++ b/main/Main.java
@@ -1,6 +1,5 @@
package main;
-import java.awt.RenderingHints.Key;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
@@ -16,13 +15,13 @@ public class Main {
public static void main(String[] args) {
Grid g=new Grid();
- //g.printLinkWeight();
- // System.out.println("Best link : " + g.getBestLinkIndex());
+
+ System.setProperty("gs.ui.renderer", "org.graphstream.ui.j2dviewer.J2DGraphRenderer");
Graph graph = new SingleGraph("Tutorial 1");
-
- ArrayList grid=g.getGrid();
- ArrayList> links=g.getLinks();
+ graph.addAttribute("ui.stylesheet", "url('resources/style.css')");
+
+ ArrayList grid=g.getGrid();
for(Router r : grid){
graph.addNode(r.name);
@@ -30,7 +29,7 @@ public class Main {
for(Router r : grid){
String current=r.name;
HashMap relier=r.getLinks();
- Set k=relier.keySet();
+ Set k=relier.keySet();
Iterator i=k.iterator();
while(i.hasNext()){
Router currentRouter=i.next();
diff --git a/structure/Grid.java b/structure/Grid.java
index 35c82f0..eb76638 100644
--- a/structure/Grid.java
+++ b/structure/Grid.java
@@ -1,8 +1,6 @@
package structure;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Random;
+import java.util.*;
public class Grid {
@@ -13,7 +11,7 @@ public class Grid {
private Random rand = new Random();
- private static final int maxWeight=100;
+ private final int maxWeight=100;
/**
* Build a 3x3 Grid