I would like to write a graph to a file in GML. I saw the javadocs and found two methods to accomplish this:
protected void writeEdgeData(Hypergraph<V,E> g, Writer w)
protected void writeVertexData(Hypergraph<V,E> graph, BufferedWriter w)
TO save a graph do I need to call both of them one after the other or just one…and if so which one? I am a bit confused here.
Also the saving process above needs to generate a valid GML file which I can read again using anyone of the below:
void load(Reader reader, G g)
void load(String filename, G g)
Thanking you in advance for your time:
You'll note that those methods are protected, so you can't call them directly from your code.
Instead, use whichever of the save() methods is appropriate.
Thanks for your advice.
This issue is resolved.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.