Matriz de Networkx para gráficos
import numpy as np
import networkx as nx
>>> A = np.array([[1, 1], [2, 1]])
>>> G = nx.from_numpy_matrix(A)
eassear nobstar
import numpy as np
import networkx as nx
>>> A = np.array([[1, 1], [2, 1]])
>>> G = nx.from_numpy_matrix(A)