Questions tagged [cytoscape-web]

Cytoscape Web is a graph -- nodes and edges -- visualisation library, written as a jQuery plugin.

Any questions related to using Cytoscape Web should be posted with this tag.

Note that Cytoscape Web has been replaced by Cytoscape.js. For questions about Cytoscape.js the should be used instead.

For more information about Cytoscape Web, visit the project page.

94 questions
10
votes
1 answer

Cytoscape.js style node based on content

I would like to color my root node a different color than the rest of the nodes on the screen, I have already done some pre-work to identify the value of the root node and have it readily available in a variable. However, in trying to style the…
Paul Giganti
  • 103
  • 1
  • 5
6
votes
2 answers

Is there a way to display a node label at the top inside the node?

I am creating a graph using cytoscape.js and I have compounded nodes which are inside the parent node. I would like to have the title of the main/parent node at the top of the node but inside the node. Is that possible in cytoscape? I have tried…
Learn AspNet
  • 1,192
  • 3
  • 34
  • 74
6
votes
3 answers

Increasing stack size in browsers

Short question: I have a javascript that goes very deep in recursion. How can I increase the stack size so that I can execute it (something like "ulimit -s unlimited" in Unix systems)? Long story: I have to draw a graph and I use Cytoscape JS…
iwicopd2
  • 87
  • 1
  • 5
6
votes
3 answers

dynamic node content (label) in cytoscape.js

I have node labels mapped to the node "name" property, and I need the label to update on the cy canvas when the name is changed. I've been using the style style: cytoscape.stylesheet() .selector('node') .css({ 'color': '#000000', …
dbean
  • 63
  • 1
  • 5
5
votes
1 answer

How to have a node's name be different than its ID using Cytoscape.js?

I'm building a web application using Cytoscape.js that visualizes protein interaction data. Proteins (nodes) need to have ID's corresponding to strings representing their chromosome locations, because this is universal. However, I would like them to…
4
votes
3 answers

React Cytoscape JS : All nodes are accumulated in one position

When creating a path using dagre, the whole nodes accumulate in one position. How can we set default positions for nodes ( Cytoscape js without react works fine) instead of setting position separately using position attribute for nodes. const layout…
4
votes
2 answers

How to show a network generated by networkx in cytoscape.js?

How can I show the network that generated by networkx in Cytoscape.js? I have tried JSON data generated by networkx, seems it doesn't work. All edges are gone. JSON generated by networkx as below: { "directed":false, "graph":{ }, "nodes":[ { …
hcnak
  • 428
  • 7
  • 18
4
votes
1 answer

using two graph panels in cytoscape.js

I need to display two graph panels in the same page in Cytoscape.js. Each panel contains a network responsive to the events from the other panel. This used to be simple in the Flash version of cytoscape web. I was declaring two visualization…
grokkaine
  • 789
  • 2
  • 7
  • 20
4
votes
1 answer

Cytoscape.js force-directed layouts and node placement

I recently found out about Cytoscape.js and would like to try out the force-directed layouts: arbor and springy. Now, I have a couple of questions: Is it possible to achieve a graph, by using one of the layouts, in which the node placement is…
amergin
  • 962
  • 1
  • 12
  • 32
3
votes
1 answer

Changing color when node is selected in Cytoscape JS

I would like to change the color of a selected node to a different color than the predefined background-color. However, as soon as I define a background color for the node in "style", the color does not change to blue (default behavior). Here is the…
Lazloo Xp
  • 858
  • 1
  • 11
  • 36
3
votes
0 answers

Cytoscape-cise layout extension does not load on large graph

I am trying to use the Cytoscape CiSE layout extension to display my graph in clusters. It is quite large, approx. 50,000 nodes with directed edges between all nodes combinations. The elements are exported from the Cytoscape desktop app as a json…
Ellen Wang
  • 51
  • 4
3
votes
1 answer

Cytoscape JS node thickness

I want to draw a simple graph with Nodes and Links between Nodes. The thing is that I want the thickness of the Links to be set depending on a variable, so I cannot pre-determine a CSS class for that. The code is from the example…
Patrick L.
  • 526
  • 6
  • 24
3
votes
1 answer

Increase width of selected edges only (cytoscape.js)

How can I predefine when I select a few nodes that are connected or simply edges, to make the width of the selected edges be bigger, without affecting the rest of edges of the entire network or the node's width? I predefined this when the nodes or…
3
votes
1 answer

Adding extra information above the node in cytoscape.js

Using cytoscape.js to draw a graph. I need to add circle above the node at top-right position. After drawing the graph, is there any API wherein we can get positions of nodes. Also, I have used the code as follows: elements :…
smita chougale
  • 235
  • 5
  • 19
3
votes
2 answers

How can I set the start position of nodes in cytoscape.js with cy.load?

I am trying to set the start position of my nodes manually but loading them from a JSON structure. If I put the position within the 'nodes' structure it works, however I am trying to add a seperate structure called 'positions:'which I thought…
user1768233
  • 1,409
  • 3
  • 20
  • 28
1
2 3 4 5 6 7