edgetype

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Calls           = "calls"
	Imports         = "imports"
	Implements      = "implements"
	References      = "references"
	HandlesRoute    = "handles_route"
	DependsOn       = "depends_on"
	Deploys         = "deploys"
	Exposes         = "exposes"
	Configures      = "configures"
	Publishes       = "publishes"
	Subscribes      = "subscribes"
	ConnectsTo      = "connects_to"
	Extends         = "extends"
	Overrides       = "overrides"
	Decorates       = "decorates"
	Throws          = "throws"
	OwnedBy         = "owned_by"
	AuthoredBy      = "authored_by"
	Tests           = "tests"
	RuntimeCalls    = "runtime_calls"
	RuntimeRPC      = "runtime_rpc"
	RuntimeProduces = "runtime_produces"
	RuntimeConsumes = "runtime_consumes"

	// Structural edges (derived from QN hierarchy)
	Contains = "contains"  // type/class -> method/field
	MemberOf = "member_of" // method/field -> type/class (reverse of contains)

	// P2/P3 static edge types
	Documents        = "documents"
	ConsumesEndpoint = "consumes_endpoint"
	ImplementsRPC    = "implements_rpc"
	ConsumesRPC      = "consumes_rpc"
	GatedByFlag      = "gated_by_flag"
	DeployedBy       = "deployed_by"
	TestedBy         = "tested_by"
	SimilarTo        = "similar_to"       // lateral: two functions in the same package with similar call patterns
	CoTestedWith     = "co_tested_with"   // lateral: two non-test symbols referenced from the same test file
	TypeHintOf       = "type_hint_of"     // function -> type referenced in parameter/return type annotations
	AccessesField    = "accesses_field"   // method -> field node it reads/writes via receiver
	ReadsEnv         = "reads_env"        // function -> env var it reads
	ExecutesProcess  = "executes_process" // function -> process it spawns
)

Edge type constants for the knowing knowledge graph. These constants define the canonical string identifiers for each edge type.

Variables

This section is empty.

Functions

func RWRWeight

func RWRWeight(edgeType string) float64

RWRWeight returns the Random Walk with Restart weight for the given edge type. Unknown edge types return 0.3 (the default).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL