Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 11 years ago

mresimulator gravatar image

NetworkX - create a Graph

Hi experts!

I wanna use

networkx.has_path(G)

where G is the graph associated to de adjacency matrix M (a N x N numpy array).

How can I create a networkx graph (necesary for use networkx.has_path()) from M?

Thanks a lot!

click to hide/show revision 2
No.2 Revision

NetworkX - create a Graph

Hi experts!

I wanna use

networkx.has_path(G)

where G is the graph associated to de adjacency matrix M (a N x N numpy array).array) of a undirected graph.

How can I create a networkx graph (necesary for use networkx.has_path()) from M?

Thanks a lot!

click to hide/show revision 3
retagged

updated 8 years ago

FrédéricC gravatar image

NetworkX - create a Graph

Hi experts!

I wanna use

networkx.has_path(G)

where G is the graph associated to de adjacency matrix M (a N x N numpy array) of a undirected graph.

How can I create a networkx graph (necesary for use networkx.has_path()) from M?

Thanks a lot!