无法使 cola.js 与 cytoscape 一起工作

Cannot get cola.js to work with cytoscape

我试图在 javascript 的 Cytoscape 图中使用 cola 布局,但出现错误

Can not apply layout: No such layout `cola` found; did you include its JS file?

我已经在我的 HTML:

中包含了 cola 和 cytoscape 库以及在 cytoscape 中使用 cola 所需的适配器

我不知道是否还缺少其他东西,或者我还应该尝试添加什么才能使用可乐!

重复:Including JavaScript files from GitHub into HTML pages

使用 CDN,如 Unpkg 或 CDNJS --- 或使用包管理器,如 npm。