Force-directed layout. Collapse/uncollapse