Modify to support laying out only selected nodes.  Not convinced this is
actually a good thing since laying out selected nodes only is pretty
ugly with this layout, but we'll leave that up to the users.
Refs #2873.

Change-Id: I42d19890287a07107f058f2f220281104ce9fe12