La bibliotheque GraphStream
Fermé
DjahidaBenahmed
Messages postés
9
Date d'inscription
lundi 7 janvier 2019
Statut
Membre
Dernière intervention
3 avril 2019
-
29 janv. 2019 à 17:58
DjahidaBenahmed Messages postés 9 Date d'inscription lundi 7 janvier 2019 Statut Membre Dernière intervention 3 avril 2019 - 30 janv. 2019 à 14:27
DjahidaBenahmed Messages postés 9 Date d'inscription lundi 7 janvier 2019 Statut Membre Dernière intervention 3 avril 2019 - 30 janv. 2019 à 14:27
A voir également:
- La bibliotheque GraphStream
- GraphStream - Télécharger - Langages
- La bibliotheque GraphStream - Forum Java
1 réponse
KX
Messages postés
16668
Date d'inscription
samedi 31 mai 2008
Statut
Modérateur
Dernière intervention
17 mars 2023
3 005
29 janv. 2019 à 18:27
29 janv. 2019 à 18:27
Bonjour,
La manipulation des fichiers se fait via les classes org.graphstream.stream.file.*
Dans ton cas avec FileSinkDGS.writeAll(Graph graph, String fileName)
La manipulation des fichiers se fait via les classes org.graphstream.stream.file.*
Dans ton cas avec FileSinkDGS.writeAll(Graph graph, String fileName)
29 janv. 2019 à 19:14
29 janv. 2019 à 19:56
import org.graphstream.graph.implementations.SingleGraph; import org.graphstream.stream.file.FileSinkDGS; public class TestDGS { public static void main(String[] args) throws Exception { SingleGraph graph = new SingleGraph("graph", false, true); graph.addEdge("x", "a", "b"); new FileSinkDGS().writeAll(graph, "C:/graph.dgs"); } }Le fichier C:/graph.dgs peut se lire avec un éditeur de texte, il contient :
30 janv. 2019 à 14:27