Adapt SCCDynamic for sparse input #2

*Adapt SCCDynamic for sparse input #2