google-deepmind / google-deepmind/graph_nets

Problem with plot_compare_graphs function

Open
#155 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.4k
Forks
777
PR merge metrics
No merged PRs in 30d

Description

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 ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.