New in version 1.1.
True when elements in expr are all components in same parent. Otherwise false:
abjad> staff = Staff(notetools.make_notes([12, 14, 16], [(1, 8)]))
abjad> componenttools.all_are_components_in_same_parent(staff.leaves)
True
True when elements in expr are all klasses in same parent. Otherwise false:
abjad> staff = Staff(notetools.make_notes([12, 14, 16], [(1, 8)]))
abjad> componenttools.all_are_components_in_same_parent(staff.leaves, klasses = (Note, ))
True
Return boolean.