probleme avec le format graphml
bjr à tous
je suis en train de créer une application sous python 2.6 et j'utilise la bibliothèque igraph, ce pendant j'ai un problème: quand j'utilise la fonction (write) pour sauvegarder mon graph sous le format graphml pas de problème mais quand j'essaie de le lire avec Graph.Read j'ai un message d'erreur par exp:
Code:
1 2 3 4 5
| from igraph import*
g=Graph(4)
g.add_edges([(0,1),(1,3),(0,2)])
g.vs["name"]=["a","b","c","d"]
write(g,"c:/test.txt","graphml") |
après quand j'essaie: v=Graph.Read("c:/test.txt","graphml")
j'ai message d'erreur:
Code:
1 2 3 4 5
| igraph.core.InternalError: Error at .\src\foreign-graphml.c:1033: GraphML support is disabled, Unimplemented function call
File "C:\Documents and Settings\Khalef\Bureau\lalala.py", line 7, in <module>
v=Graph.Read("c:/teste111.txt","graphml")
File "C:\Python26\Lib\site-packages\igraph\__init__.py", line 1138, in Read
return reader(f, *args, **kwds) |
et meme quand j'essaie d'utiliser le fichier créé via un autre logiciel comme pajek sa ne marche pas.
si quelcun pouvais m'aider sa serai très sympa
merci d'avance.