spmviz.networks.double_tree#
- spmviz.networks.double_tree(db, anchor, max_depth=4, min_count=1)[source]#
Predecessor and successor trees of a pivot pattern (word tree / double tree).
Returns
(before, after): two prefix trees of the reversed left contexts and of the right contexts of the first occurrence ofanchor(Wattenberg & Viégas, 2008; Culy & Lyding, 2010; Krause et al., 2023).