There is a specific layout algorithm for this task, it's called 'Partial (Selection Only)' in the Layout menu.
Some other algorithms have a similar setting, too, for example 'Scope' in Organic Layout, 'Act on Selection Only' in Circular Layout and 'Selected Element Incrementally' in Hierarchical Layout.