Skip to content

Commit b4a4b2b

Browse files
committed
Use Counter instead of dict
1 parent ce4b687 commit b4a4b2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

concepts/algorithms/covering_edges.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
John Wiley & Sons, 2004.
66
"""
77

8+
from collections import Counter
9+
810
from .fcbo import fast_generate_from
911

1012

@@ -89,7 +91,7 @@ def covering_edges(concept_list, context):
8991
concept_index = dict(concept_list)
9092

9193
for extent, intent in concept_index.items():
92-
candidate_counter = dict()
94+
candidate_counter = Counter()
9395

9496
property_candidates = Properties.fromint(Properties.supremum & ~intent)
9597

0 commit comments

Comments
 (0)