Skip to content
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

Gexf #25

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Gexf #25

wants to merge 2 commits into from

Conversation

pevnak
Copy link

@pevnak pevnak commented Feb 17, 2020

This extends the export to Metagraphs. I also add Project.tom. I would appreciate little shepherding to finish this to a PR.

Copy link
Contributor

@sbromberger sbromberger left a 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
Copy link
Contributor

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.

@@ -50,6 +51,7 @@ function savegexf(io::IO, g::LightGraphs.AbstractGraph, gname::String)
return 1
end

savegraph(io::IO, g::AbstractGraph, gname::String, ::GEXFFormat) = savegexf(io, g, gname)
Copy link
Contributor

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.

@@ -2,6 +2,7 @@ module GEXF

using GraphIO.EzXML
using LightGraphs
using MetaGraphs
Copy link
Contributor

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")
Copy link
Contributor

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)
Copy link
Contributor

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?

@gdalle gdalle marked this pull request as draft June 23, 2023 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants