iVis-at-Bilkent / cose-base

Core module for compound spring embedder based layout styles
MIT License
9 stars 2 forks source link

Usage of Cose layout #12

Closed neuhausi closed 1 year ago

neuhausi commented 1 year ago

Is it possible to use the cose layout outside of Cytosape? Sorry if this is not the right forum to ask this question

ugurdogrusoz commented 1 year ago

@neuhausi First of all, let me clarify that this repo is for use and reuse in our other layout styles (e.g. cose-bilkent and fcose), not meant to be used alone. But for a sample use of it, within other JS libraries you may refer to fcose repository for instance. Alternatively, you can use this service that allows one to input a graph in formats such as JSON and graphml and get the results (coordinates) in JSON.

neuhausi commented 1 year ago

@ugurdogrusoz Thank you for the reply. The only repo I found is for fcose is this which also requires cytoscape. Is it possible to use it with D3 or CanvasXpress?

ugurdogrusoz commented 1 year ago

Yes, that's the correct repo for fcose. You basically have two choices at this point:

neuhausi commented 1 year ago

So just to be clear. It is not possible to use it with D3 like cola.

ugurdogrusoz commented 1 year ago

You could use cose-base (which is independent of rendering library) with any library including D3. But it's not straightforward. An example usage is in fcose.

neuhausi commented 1 year ago

Ok. Thank you very much.