QDpy
Loading...
Searching...
No Matches
qdpy.genealogy.SearchTrajectoryNetwork Class Reference

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.

Detailed Description

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.

Member Function Documentation

◆ betweenness()

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.

◆ stepping_stones()

qdpy.genealogy.SearchTrajectoryNetwork.stepping_stones ( self,
endpoints,
* ,
percentile = 75 )

Count intermediate states on shortest paths between specified start and final states.

See also
https://doi.org/10.1007/978-3-031-89991-1_14
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.

◆ worsening_fraction()

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.


The documentation for this class was generated from the following file: