Algorithm 1From: Temporal network compression via network hashingThe matrix algorithm. Calculates SBack to article page