From 051a22b124a0fe0f74ade6e51f1ec404b207f5b4 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Tue, 15 Jun 2021 14:39:51 +0200 Subject: [PATCH] PruningTags ignores Series --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 61b56c3..62db33a 100644 --- a/main.py +++ b/main.py @@ -165,7 +165,7 @@ def pruneTags(G, minCons=2): foundCon = 0 for book in G.adj[n]: for con in G.adj[book]: - if G.nodes[con]['t'] not in ['tag', 'topList']: + if G.nodes[con]['t'] not in ['tag', 'topList', 'series']: foundCon += 1 if foundCon > minCons: G.remove_node(n) @@ -546,4 +546,4 @@ def readBooksAnalysis(): if __name__ == "__main__": - recommendNBooks(35) + recommendNBooks(45)