networkx.generators.ego.ego_graph
Linear algebra
Enter search terms or a module, class or function name.
Return a right-stochastic representation of G.
A right-stochastic graph is a weighted graph in which all of the node (out) neighbors edge weights sum to 1.
G : graph
A NetworkX graph, must have valid edge weights
copy : boolean, optional
If True make a copy of the graph, otherwise modify original graph