Graphstream algo