I am working on creating a graph using GraphStream in Scala.
A small verison of the code is the following :
val 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")
System.setProperty("org.graphstream.ui", "swing")
graph.display
This code gives the following result :
I've looked in the official documentation of GraphStream but I couldn't find how to make the Ids of Nodes and Edges appear. So my question is, how can I add text to my graph ?
Here you are