resistance_weighted_graph

resistance_weighted_graph(graph: TGraph, **args)[source]

modify the edge weights of a graph by multiplying by their effective resistance

Parameters:
  • graph – input graph

  • epsilon – tolerance for effective resistance computation (default: 1e-2)

Returns:

copy of input graph with reweighted edges