Documentation
¶
Overview ¶
Package graph builds a dependency graph and computes PageRank.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCallGraph ¶ added in v1.2.0
BuildCallGraph builds function-level call edges from the parsed file infos. An edge is only included when the callee is a known definition in the repo and the caller (Enclosing) is non-empty. Edges are deduplicated and sorted.
func BuildCallSites ¶ added in v1.2.0
BuildCallSites returns all individual call and import occurrences with source locations. Unlike BuildCallGraph, it does not deduplicate: if a function calls another three times, three CallSite entries are returned. Module-level import references (where no enclosing function exists) are included with Caller set to "<import>". Intended for focused (--symbol / --file) queries where precise line numbers matter.
func BuildGraph ¶
func BuildGraph(fileInfos []model.FileInfo) []model.Dependency
BuildGraph creates dependency edges from cross-file symbol references. Returns a list of dependencies suitable for the RepoMap.
Types ¶
This section is empty.