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

Node and edge attributes lost in conversion to igraph #44

Open
mksteel opened this issue Feb 1, 2023 · 0 comments
Open

Node and edge attributes lost in conversion to igraph #44

mksteel opened this issue Feb 1, 2023 · 0 comments

Comments

@mksteel
Copy link

mksteel commented Feb 1, 2023

This is similar to (or the same as) the issue previously posted

When converting a gexf to igraph the node and edge attributes are not retained. Example data used from previous issue: know_network_markup3.gexf.zip

When you read the data in with read.gexf you can see the node attribute "Modularity Class" that has integer data:

gexf_net <- read.gexf(file)

head(gexf_net)
gexf_net$atts.definitions

But that attribute is not linked to the nodes dataset of the gexf object

head(gexf_net$nodes)

When gexf is converted to igraph the "Modularity Class" node attribute is lost entirely

list.vertex.attributes(igraph_net)

The example data do not have edge attributes, but the same issue exists for edge attributes as well. Would appreciate any suggestions for how to extract/retain edge and node attributes when converting gexf to igraph

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

No branches or pull requests

1 participant