src/core/blossom/endpoints.js
const endpoints = (nedge, edges) => {
const endpoint = [];
for (let p = 0; p < nedge; ++p) {
endpoint.push(edges[p][0], edges[p][1]);
}
return endpoint;
};
export default endpoints;
const endpoints = (nedge, edges) => {
const endpoint = [];
for (let p = 0; p < nedge; ++p) {
endpoint.push(edges[p][0], edges[p][1]);
}
return endpoint;
};
export default endpoints;