Contents:
Filter graph by an edge attribute
graph (TypeVar(SimpleGraph, Graph, DiGraph)) – Graph to be filtered
TypeVar
SimpleGraph
Graph
DiGraph
edge_attr (str) – Edge attribute used to filter the graph
str
cutoff (float | None) – Cutoff value for the edge attribute
float
None
n_top (int | None) – Number of top edges to be kept
int
TypeVar(SimpleGraph, Graph, DiGraph)
Filtered graph
Note
Exactly one of cutoff and n_top should be specified.
cutoff
n_top