Graph clustering by flow simulation