Multi-Agent Exploration Based on Constraints Imposed with Graph Search Algorithms