Added function to reduce temporal networks to SCC