making n gram graph