Skip to main content

Module cross_source_edges

Module cross_source_edges 

Source
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 file
  • queries — code file queries a DB table
  • documents — wiki page documents a code module
  • resolves — 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.