A family of tree-based generators for bubbles in directed graphs