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

Problem with plot_compare_graphs function #155

Open
SamitaAdhiakri opened this issue Jan 17, 2024 · 1 comment
Open

Problem with plot_compare_graphs function #155

SamitaAdhiakri opened this issue Jan 17, 2024 · 1 comment

Comments

@SamitaAdhiakri
Copy link

I'm new in the field of Graph and Networks. Recently I came across your code and tired to run the code.
looking at the function like
plot_graphs_tuple(graphs_tuple_tf)
and plot_compare_graphs(output_graphs, labels=[
"Input graph",
"blocks.broadcast_globals_to_nodes",
"blocks.broadcast_globals_to_edges",
"blocks.broadcast_sender_nodes_to_edges",
"blocks.broadcast_receiver_nodes_to_edges"])

There is a function inside these called OrderedMultiDiGraph() inside graph_nx and I tried to search about that particular function unfortunately that function doesnot exists in Networkx but there is function called MultiDiGraph.order() and class called MultiDiGraph(...)
Hence it gives error of "AttributeError: module 'networkx' has no attribute 'OrderedMultiDiGraph'"

am I missing something or is it actually error ?

@alvarosg
Copy link
Collaborator

alvarosg commented Jan 17, 2024

Thanks for your message. We are not currently maintaining this library very actively, so if you are interested on using Graph Neural Networks with TensorFlow I would advice to instead use the TF-GNN library instead. There is a GraphNetwork demo in that library.

That said if you want to make this particular problem work you may be able to do it by installing a previous version of the networkx library (e.g. version 2.2), from before OrderedMultiDiGraph was removed, or directly using MultiDiGraph, which in python 3 and above is equivalent to the old OrderedMultiDiGraph.

Hope this helps!

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

2 participants