Figures for stack view and graph construction and traversal