use of org.graphstream.graph.implementations.MultiGraph in project gs-ui-javafx by graphstream.
the class TestStrokeMode method run.
private void run() {
MultiGraph graph = new MultiGraph("stroke");
graph.setAttribute("ui.quality");
graph.setAttribute("ui.antialias");
graph.setAttribute("ui.stylesheet", styleSheet);
graph.display();
graph.addNode("A");
graph.addNode("B");
graph.addNode("C");
graph.addNode("D");
graph.addEdge("AB", "A", "B");
graph.addEdge("BC", "B", "C");
graph.addEdge("CA", "C", "A");
graph.addEdge("AD", "A", "D");
graph.forEach(node -> node.setAttribute("ui.label", node.getId()));
}
Aggregations