Graph theory with applications