iVis-at-Bilkent / cytoscape.js-fcose

fCoSE: a fast Compound Spring Embedder
MIT License
134 stars 25 forks source link

A "Hello World" example? #35

Closed josephrocca closed 2 years ago

josephrocca commented 3 years ago

Hi, thanks for your work on this great extension! I'm wondering whether there's a simple "hello world" example for newbies to start with, and if not, would you accept a pull request for one?

The existing examples/demos linked from the readme are quite "elaborate" due to the code needed for the interface/interactivity. I often find it helpful to have a simple/minimal starting point to play with. Here's something I just made that might work for this purpose:

https://josephrocca.github.io/cytoscape-fcose-constraints-hello-world-example/

No problem if you'd rather not have such an example, of course - in that case feel free to close this issue. Otherwise, feel free to copy-paste that code, or I can submit a pull request - or you may have other ideas that would work better as a minimal example.

Thanks!