haive.core.graph.patterns.integration¶
Integration utilities for the pattern system.
from typing import Any, Dict This module provides helper functions for integrating the pattern system with other components of the Haive framework, particularly with the DynamicGraph builder and the NodeFactory.
Functions¶
|
Apply a registered branch to a graph. |
|
Apply a registered pattern to a graph with enhanced verification. |
|
Check if components are compatible with a pattern. |
|
Create a NodeConfig based on a pattern. |
|
Find patterns compatible with the given components. |
Register the callable processor explicitly. |
|
Register integration with the DynamicGraph. |
|
Register all integrations. |
|
Register integration with the NodeFactory. |
Module Contents¶
- haive.core.graph.patterns.integration.apply_branch_to_graph(graph, branch_name, source_node, **kwargs)[source]¶
Apply a registered branch to a graph.
- haive.core.graph.patterns.integration.apply_pattern_to_graph(graph, pattern_name, verify_compatibility=True, **kwargs)[source]¶
Apply a registered pattern to a graph with enhanced verification.
- haive.core.graph.patterns.integration.check_component_compatibility(components, pattern_name)[source]¶
Check if components are compatible with a pattern.
- haive.core.graph.patterns.integration.create_pattern_node_config(pattern_name, node_name, **pattern_params)[source]¶
Create a NodeConfig based on a pattern.
Note: This requires importing NodeConfig, which is done dynamically to avoid circular imports.
- haive.core.graph.patterns.integration.find_compatible_patterns(components)[source]¶
Find patterns compatible with the given components.
- haive.core.graph.patterns.integration.register_callable_processor()[source]¶
Register the callable processor explicitly.
- Return type:
None
- haive.core.graph.patterns.integration.register_dynamic_graph_integration()[source]¶
Register integration with the DynamicGraph.
This enhances the apply_pattern method in DynamicGraph.
- Return type:
Any