UNPKG

binary-decision-diagram

Version:

A library to create, minimize and optimize binary decision diagrams

18 lines 486 B
/** * find an simliar node in a list of nodes * which is not exactly the same node * @hotpath */ export function findSimilarNode(own, others) { const ownString = own.toString(); for (let i = 0; i < others.length; i++) { const other = others[i]; if (own !== other && !other.deleted && own.isEqualToOtherNode(other, ownString)) { return other; } } return null; } //# sourceMappingURL=find-similar-node.js.map