Matriks Networkx untuk membuat grafik

import numpy as np
import networkx as nx 
>>> A = np.array([[1, 1], [2, 1]])
>>> G = nx.from_numpy_matrix(A)
eassear nobstar