Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidEdgeType ¶
IsValidEdgeType reports whether t is a recognized edge type.
Types ¶
type Graph ¶
type Graph interface {
AddNode(ctx context.Context, n *storage.Node) error
AddEdge(ctx context.Context, e *storage.Edge) error
RemoveNode(ctx context.Context, id string) error
RemoveEdge(ctx context.Context, id string) error
ExtractSubgraph(ctx context.Context, startID string, maxDepth int) (*Subgraph, error)
BFS(ctx context.Context, startID string, maxDepth int) ([]string, error)
IntentBFS(ctx context.Context, startID string, maxDepth int, queryIntent intent.Intent) ([]string, error)
Impact(ctx context.Context, filePath string, maxDepth int) ([]string, error)
Ancestors(ctx context.Context, id string) ([]string, error)
Descendants(ctx context.Context, id string) ([]string, error)
}
Graph is the interface for all graph operations used by Engine.
Click to show internal directories.
Click to hide internal directories.