more work on collapsable graphs