Search code examples
cytoscape

How to change node's color individually in Cytoscape?


In Node's Style view, if I change the color in the label setting, it changes all the color of all nodes. I want to control the color of each individual node. How can I do that? Thanks for help.


Solution

  • There are two approaches. First, you can create a column that has the color values or categories and use a discrete mapper to map the color. Second, you can select the nodes you want to change the label color of and then click on the third column (Byp.) rather than the first column, and that would change the label color just for those nodes.