Expand description
Cross-source graph edges — connects external data to code via the graph index.
When provider data (issues, PRs, DB schemas) references code files, this module
creates IndexEdge entries that the graph index uses for related-file discovery.
Edge kinds:
mentions— issue/PR body references a code filequeries— code file queries a DB tabledocuments— wiki page documents a code moduleresolves— PR resolves/fixes an issue
Scientific basis: Scale-free networks (Barabasi-Albert) — cross-source edges follow preferential attachment: files mentioned in many issues become graph hubs.
Constants§
- EDGE_
DOCUMENTS - EDGE_
MENTIONS - Edge kind constants for cross-source relationships.
- EDGE_
QUERIES - EDGE_
RESOLVES
Functions§
- extract_
cross_ source_ edges - Extract cross-source edges from a set of ContentChunks.
- merge_
edges - Merge cross-source edges into an existing ProjectIndex edge list. Deduplicates edges with the same (from, to, kind) triple, keeping the higher weight.