Graph flood-fill and subset sum problem