MCPcopy Create free account
hub / github.com/codemix/graph / getNodes

Function getNodes

packages/graph/src/test/backtickIdentifiers.test.ts:22–24  ·  view source on GitHub ↗
(pattern: Pattern)

Source from the content-addressed store, hash-verified

20
21// Helper to extract nodes from a Pattern
22function getNodes(pattern: Pattern): NodePattern[] {
23 return pattern.elements.filter((e): e is NodePattern => e.type === "NodePattern");
24}
25
26// Helper to extract edges from a Pattern
27function getEdges(pattern: Pattern): EdgePattern[] {

Callers 1

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected