-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from OKN-CollabNext/skip-work-nodes
Don't display work nodes
- Loading branch information
Showing
6 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
def infer_author_topic_edges( | ||
author_work_edges: list[dict], work_topic_edges: list[dict] | ||
) -> list[dict]: | ||
return [ | ||
{ | ||
"id": f"{author_work_edge['start']}-{work_topic_edge['end']}", | ||
"start": author_work_edge["start"], | ||
"end": work_topic_edge["end"], | ||
"label": "TOPIC", | ||
"start_type": "AUTHOR", | ||
"end_type": "TOPIC", | ||
} | ||
for author_work_edge in author_work_edges | ||
for work_topic_edge in work_topic_edges | ||
if author_work_edge["end"] == work_topic_edge["start"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters