webyrd / mediKanren

Proof-of-concept for reasoning over the SemMedDB knowledge base, using miniKanren + heuristics + indexing.
MIT License
323 stars 53 forks source link

added visual tool to the shortest path algorithm #51

Closed kaiwenho closed 3 years ago

kaiwenho commented 3 years ago

(define rtx2-data (load-data "rtx2_2020_09_16-subject_predicate_object_count.tsv")) (define all-hash (load-all-hash rtx2-data "low")) (define p1 (shortest-path*-with-pred all-hash "HGNC" "CHEBI" #f)) (visualize-with-web p1) Try above calls with shortest_path_with_visual.rkt and open shorest-path-graph-visual-hover.html for visualizing the shortest path from "HGNC" to "CHEBI".