|
QDpy
|
A directed graph of transitions aggregated by search state. More...
Public Member Functions | |
| worsening_fraction (self) | |
| betweenness (self, *, normalized=True) | |
| Compute directed unweighted betweenness, independent of edge frequency. | |
| stepping_stones (self, endpoints, *, percentile=75) | |
| Count intermediate states on shortest paths between specified start and final states. | |
A directed graph of transitions aggregated by search state.
Store ordered states and counts of observed directed transitions between them.
Definition at line 136 of file genealogy.py.
| qdpy.genealogy.SearchTrajectoryNetwork.betweenness | ( | self, | |
| * | , | ||
| normalized = True ) |
Compute directed unweighted betweenness, independent of edge frequency.
Return exact Brandes betweenness excluding path endpoints and self-loops. Normalize by the number of ordered endpoint pairs excluding the focal state. Transition frequencies remain available in ``transitions``.
Definition at line 158 of file genealogy.py.
| qdpy.genealogy.SearchTrajectoryNetwork.stepping_stones | ( | self, | |
| endpoints, | |||
| * | , | ||
| percentile = 75 ) |
Count intermediate states on shortest paths between specified start and final states.
Flag states strictly above the chosen percentile of shortest-path counts. Supply an iterable of ordered ``(start, final)`` pairs. Counts sum over all equally short directed paths for each pair, excluding the pair's endpoints. Repeated pairs contribute repeatedly. Unreachable pairs contribute zero paths. The percentile includes zero-count states.
Definition at line 180 of file genealogy.py.
| qdpy.genealogy.SearchTrajectoryNetwork.worsening_fraction | ( | self | ) |
Return the fraction of scored transitions that worsened, or None without scores.
Definition at line 145 of file genealogy.py.