{"action":"opened","issue":{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1277","repository_url":"https://api.github.com/repos/cytoscape/cytoscape.js","labels_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1277/labels{/name}","comments_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1277/comments","events_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1277/events","html_url":"https://github.com/cytoscape/cytoscape.js/issues/1277","id":137527443,"number":1277,"title":"change edges line color when the connected node clicked in cytoscape.js","user":{"login":"dendihandian","id":16485031,"avatar_url":"https://avatars.githubusercontent.com/u/16485031?v=3","gravatar_id":"","url":"https://api.github.com/users/dendihandian","html_url":"https://github.com/dendihandian","followers_url":"https://api.github.com/users/dendihandian/followers","following_url":"https://api.github.com/users/dendihandian/following{/other_user}","gists_url":"https://api.github.com/users/dendihandian/gists{/gist_id}","starred_url":"https://api.github.com/users/dendihandian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dendihandian/subscriptions","organizations_url":"https://api.github.com/users/dendihandian/orgs","repos_url":"https://api.github.com/users/dendihandian/repos","events_url":"https://api.github.com/users/dendihandian/events{/privacy}","received_events_url":"https://api.github.com/users/dendihandian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-01T10:02:27Z","updated_at":"2016-03-01T10:02:27Z","closed_at":null,"body":"Can Someone give an example of Cytoscape.js about a node that when it clicked, the neighboard edges changed it styles.\r\nthis code doesn't work:\r\n`cy.$('node:selected').neighborhood('edge').style(\r\n  {\r\n    'line-color' : 'black'\r\n  });\r\ncy.$('node:selected').connectedEdges().style(\r\n  {\r\n    'line-color' : 'black'\r\n  });`"}}