A tree graph data structure for LFP operators