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 names missing in dataframe from get_networkx_graph_as_dataframe_of_edges #113

Open
agitter opened this issue Apr 1, 2021 · 0 comments

Comments

@agitter
Copy link

agitter commented Apr 1, 2021

Calling get_networkx_graph_as_dataframe_of_edges on the augmented forest generated a data frame that has node names only for the edges that are in the optimal forest solution. For instance:

protein1	protein2	cost	in_solution
A	C	0.1	True
C	D	0.1	True
		10.0	

The last row is for the edge A-D.

This happens because the forest graph has protein1 and protein2 as edge attributes. These are also the keys used when exporting the graph to a dataframe, and the edge attributes overwrite the initial key-value pairs for each edge.

I believe I have a fix that I will push to my fork. I can submit a pull request here if you would like.

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