instability property

double? get instability

Ce / (Ca + Ce): 0 for a feature everything leans on and that leans on nothing, 1 for one that only leans on others. Null when it has no edge to any other feature at all.

Implementation

double? get instability {
  final total = afferent + efferent;
  return total == 0 ? null : efferent / total;
}