cytoscape / cytoscape.js

Graph theory (network) library for visualisation and analysis
https://js.cytoscape.org
MIT License
10.09k stars 1.64k forks source link

Can we highlight a part of graph (nodes and edges) from a big graph by just providing the details in JSON. #1985

Closed jtewari08 closed 7 years ago

jtewari08 commented 7 years ago

I have a use case where i have to simply highlight few nodes and edges of the graph which fall into specific timeframe. e.g: if i have a graph of events showing 100 nodes and edges , I want to highlight events occurred in past 1 day , so i have filtered the JSON data , now i want to just highlight those specific nodes out of 100 and leave rest of the graph as is. In cytoscape what is the best way to do this? Is there a simple method where i can just pass the JSON and the rest is handled.

This is more of an information related thing.

maxkfranz commented 7 years ago

Use cy.json() or ele.json() to make declarative edits.

In future, please post questions to Stack Overflow. The issue tracker is for feature requests and bug reports. You may get responses faster on Stack Overflow, as more people use it for help questions. Stack Overflow answers tend to come up in Google searches better than closed GitHub issues, so it benefits other developers. Thanks