Implemented Influence Algorithm