From 51b44349846d81257a10607adf94576f678fec6e Mon Sep 17 00:00:00 2001 From: Loic Guegan <16000511@e212m09.istic.univ-rennes1.fr> Date: Tue, 1 Mar 2016 11:30:35 +0100 Subject: [PATCH] Add package --- algorithm/AODV.java | 7 +++++++ main/Main.java | 15 ++++++++++++++- structure/Grid.java | 5 +++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 algorithm/AODV.java create mode 100644 structure/Grid.java diff --git a/algorithm/AODV.java b/algorithm/AODV.java new file mode 100644 index 0000000..233c918 --- /dev/null +++ b/algorithm/AODV.java @@ -0,0 +1,7 @@ +package algorithm; + + + +public class AODV{ + +} \ No newline at end of file diff --git a/main/Main.java b/main/Main.java index bb17555..64a8858 100644 --- a/main/Main.java +++ b/main/Main.java @@ -1,8 +1,21 @@ package main; +import org.graphstream.graph.*; +import org.graphstream.graph.implementations.*; + + public class Main { public static void main(String[] args) { - // TODO Auto-generated method stub + Graph graph = new SingleGraph("Tutorial 1"); + + graph.addNode("A"); + graph.addNode("B"); + graph.addNode("C"); + graph.addEdge("AB", "A", "B"); + graph.addEdge("BC", "B", "C"); + graph.addEdge("CA", "C", "A"); + + graph.display(); } } diff --git a/structure/Grid.java b/structure/Grid.java new file mode 100644 index 0000000..cdf21f4 --- /dev/null +++ b/structure/Grid.java @@ -0,0 +1,5 @@ +package structure; + +public class Grid { + +}