Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8047a9

Browse files
author
Eric Naeseth
committed
Fixing FPNode#children().
It had broken after FPNode#_children was changed to a dictionary.
1 parent 87139f2 commit e8047a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fp_growth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def fset(self, value):
148148
@property
149149
def children(self):
150150
"""The nodes that are children of this node."""
151-
return tuple(self._children)
151+
return tuple(self._children.itervalues())
152152

153153

154154
def __repr__(self):

0 commit comments

Comments
 (0)