MCPcopy Index your code
hub / github.com/algorithmicsuperintelligence/openevolve / selectProgram

Function selectProgram

scripts/static/js/graph.js:97–111  ·  view source on GitHub ↗
(programId)

Source from the content-addressed store, hash-verified

95}
96
97export function selectProgram(programId) {
98 const nodes = g.selectAll("circle");
99 nodes.each(function(d) {
100 const nodeElem = d3.select(this);
101 if (d.id === programId) {
102 nodeElem.classed("node-selected", true);
103 } else {
104 nodeElem.classed("node-selected", false);
105 }
106 nodeElem.classed("node-hovered", false);
107 });
108 // Dispatch event for list view sync
109 window.dispatchEvent(new CustomEvent('node-selected', { detail: { id: programId } }));
110 updateGraphEdgeSelection(); // update edge highlight on selection
111}
112
113let svg = null;
114let g = null;

Callers 5

renderNodeListFunction · 0.90
mainUI.jsFile · 0.90
updatePerformanceGraphFunction · 0.90
scrollAndSelectNodeByIdFunction · 0.85
renderGraphFunction · 0.85

Calls 1

updateGraphEdgeSelectionFunction · 0.85

Tested by

no test coverage detected