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
0
votes
1 answer

Setting node style in cytoscapeJs

As you can see below not all the node style that i declare are working. I want to make the text inside the node larger and in the documentation i found the code: 'labelFontSize': 100. Than, i want to make the edge weight (that you cannot see in the…
Raiseku
  • 21
  • 5
0
votes
1 answer

Cytoscape Fit function is not working if we have dynamic height calculated using number of nodes

I am using Cytoscape Dagre extension to show hierarchical graph from left to right. It has 14 children and one parent 1 and main parent. I am calculating the height of the container using the number of nodes. Then I am calling fit function after the…
Learn AspNet
  • 1,192
  • 3
  • 34
  • 74
0
votes
1 answer

Cytoscape Dagre shows connected Children when there are multiple children

I am using Cytoscape Dagre extension to show hierarchical graph from left to right. It has 14 children and one parent 1 and main parent. All children are connected to parent 1 but whenever I use draw a graph using dagre extension, it seems like…
Learn AspNet
  • 1,192
  • 3
  • 34
  • 74
0
votes
1 answer

Cytoscape.js Graph does not run in the nested angular component. Error - Cannot read property 'className' of null

I am trying to create a separate angular component for a graph built in cytoscape. Now I am trying to use the same component in the other component in Angular but it does not do anything. It also gives me an error Error - Cannot read property…
Learn AspNet
  • 1,192
  • 3
  • 34
  • 74
0
votes
0 answers

Saving graphs to the db linked to a user profile in cytoscape.js

I am working on a graph visualization using cytoscape.js in my reactjs app. What I am trying to do is to add the ability for a user to save and render graphs linked to their profile. I am authenticating my react app using @auth0/auth0-react. And I…
joseluke
  • 65
  • 1
  • 12
0
votes
1 answer

How to delete the parent node without deleting the children nodes

This is the code sample that I am using in reactjs. const node = graph.$(`#${selectedNode.id()}`); graph.remove(node); selectedNode.id is the id of the parent node but it deletes all the children nodes inside this parent node. How can I…
joseluke
  • 65
  • 1
  • 12
0
votes
0 answers

Cytoscape-cxtmenu.js : Displaying Menu commands based on condition

I have an app using cytoscape version 3.15.2 and cxtmenu library version 3.1.1. I have a case where I want to add conditions on some edges based on a condition. I have a command called 'info', which I am applying on the menu's on all edges in the…
Sai Krishna
  • 593
  • 1
  • 8
  • 25
0
votes
1 answer

Changing Clustering Coefficient in Cytoscape

If I change any parameter like clustering coefficient, average shortest path length, it is not showing any effect on the visualization of the network.
0
votes
1 answer

Cytoscape.js - Find all common nodes and retain them

I have a graph: B -> A, C -> A, C -> D where node B and node C are of the same type. I would like to find and retain only the common nodes shared between the nodes which is node A. How do i filter and remove out the nodes C -> D while retaining the…
Lee Sai Mun
  • 140
  • 3
  • 13
0
votes
1 answer

How to pass parameter to cola.js when setting edge length of plot by cytoscape.js?

I'm new to cytoscape.js And I met a problem about setting edge length of ploy by cytoscape.js. I know that extension cola.js can help with it.But I don't know how to pass parameters to cola.js setting options. My code is like this. data.json: { …
shebentao
  • 87
  • 11
0
votes
1 answer

how to use different colors to mark nodes in cytoscape.js?

currently I'm trying to realize this function: I've created a color selector on the website. Once a user selects a specific color, the colors of nodes he/she selected and their neighbouring nodes will be changed into the color selected after tap.…
Li Shen
  • 47
  • 2
  • 7
0
votes
2 answers

badge position for nodes

I'm trying to add badges to my cytoscape.js nodes. Badges are HTML elements. I'm using bootstrap badges Here are elements with badges. (the colors of the badges are irrelevant) When I zoom out, the position of the badges is not set correctly. They…
canbax
  • 3,432
  • 1
  • 27
  • 44
0
votes
0 answers

need to filter which ever the region is selected in cloudmapper using Cytoscape.js

Initially, cloudmap.js will be loaded and you can find the file under js. towards the left top corner, there is a button "Delete" which will delete the selected region but my requirement is to show the selected region. Here is the existing code…
santosh
  • 192
  • 9
0
votes
1 answer

How to implement the functionality in cytoscape.js to add an edge between two nodes by clicking the nodes?

I want to connect two nodes when the user clicks one node first and then the second node.
0
votes
0 answers

How to use Extensions of Cytoscape

Div around each node that shows up on tapping a node I am trying to achieve as in this video - https://www.youtube.com/watch?v=IMN8j-AvZAE (The attached screenshot is from the video itself) My question to the Cytoscape team is : Assuming that in…