Shrink is the opposite of Expand. Expand is a synonym of Increase. Temperature can Increase. 
Flag is related to General. General is related to Make. Make is a synonym of Gain. 
Shrink <--Antonym--> Expand <--Synonym--> Increase <--CapableOf-- Temperature 
Flag <--RelatedTo--> General <--RelatedTo--> Make <--Synonym--> Gain 