Basketball is related to Rim. Rim is related to Glass. Glass is related to Broken. Broken is related to Cast. 
Space is related to Board. Board is related to Head. 
Basketball <--RelatedTo--> Rim <--RelatedTo--> Glass <--RelatedTo--> Broken <--RelatedTo--> Cast 
Space <--RelatedTo--> Board <--RelatedTo--> Head 