highlightNodes(array) {
        const Nodes = [];
        array.forEach((innerArray) => {
            const resultArray = innerArray.map(value => this.findNodeIndexById(value));
            Nodes.push(resultArray);
        });

        Nodes.forEach((subArray) => {
            subArray.forEach((node) => {
                globalScope.allNodes[node].highlighted = true;
            });
        });
    }
Function to highlight the nodes in the currently selected circuit
@param {Array<Array>} array - id's of the nodes, that we want to highlight