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

Directed Graph Example Notebook #42

Open
fabiank0 opened this issue Nov 10, 2021 · 0 comments
Open

Directed Graph Example Notebook #42

fabiank0 opened this issue Nov 10, 2021 · 0 comments

Comments

@fabiank0
Copy link

Hello,
I noticed that in the Directed Graph Example Notebook you created a graph using the function

# and generate a networkx graph from it
G = nx.from_numpy_array(ens_adj)

in the block [24].

However, according to
https://networkx.org/documentation/stable/reference/generated/networkx.convert_matrix.from_numpy_array.html
the function

nx.from_numpy_array()

per default creates a graph using nx.Graph, which is undirected.
Shouldn't the function call therefore be

G = nx.from_numpy_array(ens_adj, create_using=nx.DiGraph)

?

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