Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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!

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

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!