UNPKG

metagraph

Version:

A framework for building higher-order graph data structures

23 lines 719 B
import { Graph } from './types.js'; /** * Composes multiple graph patterns into a single unified pattern. * Resolves dependencies between patterns and creates a combined interface. * * @param composition - A graph where nodes are patterns and edges define dependencies * @returns A composed pattern that combines all input patterns * * @example * ```typescript * const comp = compose(graph_detect({ * nodes: { * graph: graph_pattern(), * subgraph: subgraph_pattern() * }, * edges: { * dependency: {source: 'graph', target: 'subgraph', input: 'parent'} * } * })); * ``` */ export declare const compose: (composition: Graph) => Graph<any, any>; //# sourceMappingURL=compose.d.ts.map