-
Couldn't load subscription status.
- Fork 28
Gexf #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Gexf #25
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a very good start. I think we're going to need some tests as well.
| @@ -0,0 +1,218 @@ | |||
| # This file is machine-generated - editing it directly is not advised | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need Manifest.toml in the repo... you should add this to .gitignore.
| return 1 | ||
| end | ||
|
|
||
| savegraph(io::IO, g::AbstractGraph, gname::String, ::GEXFFormat) = savegexf(io, g, gname) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we still need this since without it we won't be able to save non-Metagraphs.
|
|
||
| using GraphIO.EzXML | ||
| using LightGraphs | ||
| using MetaGraphs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this here since you're including metagraphs.jl below, which has it.
| xattrs = addelement!(xg, "attributes") | ||
| xattrs["class"] = element_type | ||
| for (k,i) in k2id | ||
| xat=addelement!(xattrs, "attribute") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggest spacing here
| end | ||
| end | ||
|
|
||
| function savegexf(io::IO, g::MetaGraph, gname::String) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be MetaGraph or AbstractMetaGraph? Is it just for undirected metagraphs?
This extends the export to Metagraphs. I also add Project.tom. I would appreciate little shepherding to finish this to a PR.