Hi Anishek,I guess the documentation would be your best mate for this one : http://graphstream-project.org/doc/Tutorials/Creating-a-movie-with-FileSinkImages/Do not forget to enable a layout.Cheers.2017-09-07 22:24 GMT+12:00 Anishek Agarwal <anishek AT gmail.com>:Hello,I am trying to render a simple graph with the code belowSingleGraph graph = new SingleGraph("test");
graph.addNode("1");
graph.addNode("2");
graph.addNode("3");
graph.addNode("4");
graph.addEdge("e1", "1", "2");
graph.addEdge("e2", "1", "3");
// graph.addEdge("e3","2","4");
// graph.addEdge("e4","3","4");
FileSinkImages sink =
new FileSinkImages(FileSinkImages.OutputType.PNG, FileSinkImages.Resolutions.SVGA);
graph.write("/tmp/a.jpg");however all i am getting in the output JPG is a "dot" as below.dependency is<dependency><groupId>org.graphstream</groupId><artifactId>gs-core</artifactId><version>1.3</version></dependency>running on java 1.8 on mac OS Sierracan someone help as to what am i doing wrong ?thanksanishek--Guilhelm Savin
Computer Science PhD
Archives gérées par MHonArc 2.6.16.