MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / set_enabled

Method set_enabled

graphlite/src/plan/pattern_optimization/integration.rs:433–440  ·  view source on GitHub ↗

Enable or disable the global optimizer

(&mut self, enabled: bool)

Source from the content-addressed store, hash-verified

431
432 /// Enable or disable the global optimizer
433 pub fn set_enabled(&mut self, enabled: bool) {
434 self.enabled = enabled;
435 let config = IntegrationConfig {
436 enable_optimization: enabled,
437 ..IntegrationConfig::default()
438 };
439 self.pipeline.update_config(config);
440 }
441
442 /// Check if optimizer is enabled
443 pub fn is_enabled(&self) -> bool {

Callers 3

test_global_optimizerFunction · 0.80

Calls 1

update_configMethod · 0.45

Tested by 1

test_global_optimizerFunction · 0.64