routage-optimiste/main/Main.java

22 lines
398 B
Java
Raw Normal View History

2016-02-23 13:34:10 +01:00
package main;
2016-03-01 11:30:35 +01:00
import org.graphstream.graph.*;
import org.graphstream.graph.implementations.*;
2016-02-23 13:34:10 +01:00
public class Main {
public static void main(String[] args) {
2016-03-01 11:30:35 +01:00
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();
2016-02-23 13:34:10 +01:00
}
}