Edit grid

This commit is contained in:
Loic Guegan 2016-03-01 12:11:16 +01:00
parent a685b7db4a
commit e513bd7e53
2 changed files with 44 additions and 10 deletions

View file

@ -3,19 +3,14 @@ package main;
import org.graphstream.graph.*;
import org.graphstream.graph.implementations.*;
import structure.Grid;
public class Main {
public static void main(String[] args) {
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();
Grid g=new Grid(5, 6,25);
g.displayGrid();
}
}