test
This commit is contained in:
commit
7cb597989c
3 changed files with 26 additions and 2 deletions
|
@ -1,10 +1,22 @@
|
|||
package main;
|
||||
|
||||
import javafx.application.Application;
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue