예제 #1
0
func CheckCount(tree store.SubGraphs, limit int, action CollectAction) CollectAction {
	return func(lg *labelGraph) {
		if tree.Count(lg.label) <= limit {
			action(lg)
		}
	}
}