pub enum EdgeKind {
Contains,
Calls,
Implements,
Inherits,
Uses,
Imports,
Annotated,
Throws,
References,
}Expand description
Directed relationship between two nodes.
Variants§
Contains
Parent–child containment: File→Module, Module→Struct, Struct→Method.
Calls
Resolved call site: Function→Function or Method→Method.
Implements
impl Trait for Struct, class Foo implements Bar — Struct→Trait/Interface.
Inherits
class Foo extends Bar, embedded struct in Go — subtype→supertype.
Distinct from Implements: this is “is-a” inheritance vs “can-do” interface
satisfaction.
Uses
A type appears as a parameter or return type: fn→Struct/Trait.
Imports
use path::to::Thing import.
Annotated
A symbol is decorated/annotated by another (@Override, @dataclass,
#[derive(Debug)]).
Throws
Java throws ExceptionType — method→exception class.
References
A Markdown section (or file-level prose) mentions a code symbol, via an inline code-span or link text matching a known identifier. Source can be cross-language by design (docs reference any language).