A Reactive Multiagent Framework for Distributed Graph Mining