Home | History | Annotate | Download | only in linalg

Lines Matching refs:nodelist

20 def incidence_matrix(G, nodelist=None, edgelist=None, 
36 nodelist : list, optional (default= all nodes in G)
37 The rows are ordered according to the nodes in nodelist.
38 If nodelist is None, then the ordering is produced by G.nodes().
76 if nodelist is None:
77 nodelist = G.nodes()
83 A = np.zeros((len(nodelist),len(edgelist)))
84 node_index = dict( (node,i) for i,node in enumerate(nodelist) )
93 'but not in nodelist"%(u,v)')
110 def adjacency_matrix(G, nodelist=None, weight='weight'):
118 nodelist : list, optional
119 The rows and columns are ordered according to the nodes in nodelist.
120 If nodelist is None, then the ordering is produced by G.nodes().
146 return nx.to_numpy_matrix(G,nodelist=nodelist,weight=weight)