Refactoring variable graphs, display, and selection