Shortest-path detection finds the shortest graph connections between candidate biomedical entities and supplies relational context for named entity disambiguation. The pipeline excludes highly connected hub nodes, searches paths of one or two relationships, and formats retained paths as readable relationship strings. section 8.4.3
A practical detection pipeline performs these operations:
- Calculate node degree with `gds.degree.stream` and collect highly connected nodes for exclusion as generic hubs. section 8.4.3
- Unwind each path, collect its nodes and relationships, and render directional strings such as `(n1)-[:REL_TYPE]->(n2)`. section 8.4.3
SNOMED candidate context
A detected path links Congenital Zika virus infection to Congenital through an OCCURRENCE relationship, then links Congenital to Micrencephaly, Acrocephaly, and other congenital malformations. Summarizing these links gives the LLM shared biomedical context for disambiguation.
