Graph theory modeling applications and algorithms