Skip to content

Commit

Permalink
avoid repeated work
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCatt91 committed Oct 16, 2024
1 parent c49e886 commit ea845ab
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/kg_topology_toolbox/topology_toolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,10 +547,12 @@ def edge_pattern_summary(

# composition & metapaths
if return_metapath_list:
counts = self.edge_metapath_count(
filter_relations,
composition_chunk_size,
composition_workers,
counts = composition_count(
df_triangles,
chunk_size=composition_chunk_size,
workers=composition_workers,
metapaths=True,
directed=True,
)
counts["metapath"] = (
counts["r1"].astype(str) + "-" + counts["r2"].astype(str)
Expand Down

0 comments on commit ea845ab

Please sign in to comment.