Can I run IGraphM on Wolfram Cloud

I’m trying to use the IGraphM package on the Wolfram Cloud, but I encountered the following error:

IGraph/M cannot run in the Wolfram Cloud because the cloud does not support LibraryLink. Aborting.

Is there any way to use IGraphM or similar graph functionality in the Wolfram Cloud environment? Alternatively, are there any workarounds?

As the error message states, the Wolfram Cloud does not support LibraryLink, at least for loading libraries that are provided by the user, and are not bundled with Mathematica.

I just verified that this limitation is still in place today.

The error message from trying to load libraries on the Wolfram Cloud is somewhat confusing, so IGraph/M proactively checks whether it is running in the Wolfram Cloud and if yes, it will refuse to load.

In short, no package that relies on compiled code will run on Wolfram Cloud. This limitation is imposed by Wolfram due to security concerns, and is not something a package author (or a user) can work around.

1 Like