Find internal relationships when expanding nodes.