Graph theory added.