Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pom
committed
Aug 4, 2010
1 parent
490a828
commit 4635392
Showing
4 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.2.1 | ||
0.2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
#!/usr/bin/python | ||
|
||
import gexf | ||
from gexf import Gexf,GexfImport | ||
|
||
# test helloworld.gexf | ||
gexf = Gexf("Paul Girard","A hello world! file") | ||
graph=gexf.addGraph("directed","static","a hello world graph") | ||
|
||
graph.addNode("0","hello") | ||
graph.addNode("1","World") | ||
graph.addEdge("0","0","1") | ||
|
||
output_file=open("hellowrld.gexf","w") | ||
gexf.write(output_file) | ||
|
||
# test GexfImport | ||
f = open("exp.gexf") | ||
o = open("exp_bootstrap_bootstrap.gexf", "w+") | ||
|
||
gexf_import = gexf.GexfImport(f).gexf() | ||
gexf_import = GexfImport(f).gexf() | ||
gexf_import.write(o) |