1 2 3 4 5 6 7 8 9
import cytoscape from 'cytoscape'; let options = { container: document.getElementById('graph'), }; Object.assign(options, data); let cy = cytoscape(options);