use newer Cytoscape API