k_nearest_neighbors
degree_mixing_matrix
Enter search terms or a module, class or function name.
Return mixing matrix for attribute.
G : graph
NetworkX graph object.
attribute : string
Node attribute key.
nodes: list or iterable (optional) :
Use only nodes in container to build the matrix. The default is all nodes.
mapping : dictionary, optional
Mapping from node attribute to integer index in matrix. If not specified, an arbitrary ordering will be used.
normalized : bool (default=False)
Return counts if False or probabilities if True.
m: numpy array :
Counts or joint probability of occurrence of attribute pairs.