Refactorized common sample graphs