node_sources
NodeSources
Calculate normalized in/out flow balance and determine if each node is a source or a sink.
contained_flows = contained_flows
instance-attribute
in_flows = in_flows
instance-attribute
out_flows = out_flows
instance-attribute
__init__(in_flows, out_flows, contained_flows)
run(min_edges=2)
Calculate normalized in/out flow balance and determine if each node is a source or a sink.
Source nodes are labeled as 1, sink nodes are labeled as -1. If the balance falls within the range [-threshold, threshold], the nodes are neither sources nor sinks and labeled as 0.
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray: nodes heatmap of normalized in/out flow balance |