You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If provided, ignores elements automatically based on a percentile threshold of their flow values (`flow_attr`).
84
+
Elements (edges, or nodes if `flow_attr_origin` is `"node"`) whose flow is below this percentile
85
+
are ignored when enforcing the error constraints. Must be in the range `[0, 100]`.
86
+
This is mutually exclusive with `elements_to_ignore` (setting both raises a `ValueError`).
87
+
See [ignoring edges documentation](ignoring-edges.md).
88
+
80
89
- `error_scaling: dict`, optional
81
90
82
91
Dictionary `edge: factor` (or `node: factor`, if `flow_attr_origin` is `"node"`)) storing the error scale factor (in [0,1]) of every edge, which scale the allowed difference between edge/node weight and walk weights.
@@ -114,6 +123,8 @@ def __init__(
114
123
- If the flow attribute `flow_attr` is not specified in some edge.
115
124
- If the graph contains edges with negative flow values.
116
125
- ValueError: If `flow_attr_origin` is not "node" or "edge".
126
+
- If `elements_to_ignore_percentile` is set and is not in `[0, 100]`.
127
+
- If `elements_to_ignore_percentile` is set together with `elements_to_ignore`.
0 commit comments