Web server.I can't figure out how to do it

Web server. I can’t figure out how to do it.

I know what you mean.

This may help.

Note: I have published a few variations over a few years but the example in the link is the last one I published that uses Cytoscape.js with SWI-Prolog.

HTH