{"action":"created","issue":{"url":"https://api.github.com/repos/graphstream/gs-core/issues/194","repository_url":"https://api.github.com/repos/graphstream/gs-core","labels_url":"https://api.github.com/repos/graphstream/gs-core/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/graphstream/gs-core/issues/194/comments","events_url":"https://api.github.com/repos/graphstream/gs-core/issues/194/events","html_url":"https://github.com/graphstream/gs-core/issues/194","id":157650968,"number":194,"title":"Removing Attributes after displaying a Graph","user":{"login":"mibadim","id":5670523,"avatar_url":"https://avatars.githubusercontent.com/u/5670523?v=3","gravatar_id":"","url":"https://api.github.com/users/mibadim","html_url":"https://github.com/mibadim","followers_url":"https://api.github.com/users/mibadim/followers","following_url":"https://api.github.com/users/mibadim/following{/other_user}","gists_url":"https://api.github.com/users/mibadim/gists{/gist_id}","starred_url":"https://api.github.com/users/mibadim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mibadim/subscriptions","organizations_url":"https://api.github.com/users/mibadim/orgs","repos_url":"https://api.github.com/users/mibadim/repos","events_url":"https://api.github.com/users/mibadim/events{/privacy}","received_events_url":"https://api.github.com/users/mibadim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-31T11:38:58Z","updated_at":"2016-05-31T14:14:44Z","closed_at":null,"body":"So I'm about to desperate. I want to change the graph's look _while_ it is displayed. _Adding_ a new attribute works fine, but removing doesn't (only before calling `display()`).\r\n\r\n```Java\r\nimport org.graphstream.graph.Graph;\r\nimport org.graphstream.graph.implementations.SingleGraph;\r\n\r\npublic class GSTester {\r\n\r\n\tpublic static void main(String[] args) throws InterruptedException {\r\n\t\tGraph g = new SingleGraph(\"g\");\r\n\t\tg.addNode(\"a\");\r\n\t\tg.addNode(\"b\");\r\n\t\tg.addEdge(\"ab\", \"a\", \"b\");\r\n\r\n\t\tg.display();\r\n\t\tg.getEdge(\"ab\").setAttribute(\"ui.style\", \"fill-color: red;\"); // works\r\n\t\tg.getEdge(\"ab\").clearAttributes(); // doesn't\r\n\t}\r\n}\r\n```\r\nHow can I remove the edge's attribute(s) after having called `display()` _and_ make the changes effect to the visual graph?"},"comment":{"url":"https://api.github.com/repos/graphstream/gs-core/issues/comments/222701522","html_url":"https://github.com/graphstream/gs-core/issues/194#issuecomment-222701522","issue_url":"https://api.github.com/repos/graphstream/gs-core/issues/194","id":222701522,"user":{"login":"mibadim","id":5670523,"avatar_url":"https://avatars.githubusercontent.com/u/5670523?v=3","gravatar_id":"","url":"https://api.github.com/users/mibadim","html_url":"https://github.com/mibadim","followers_url":"https://api.github.com/users/mibadim/followers","following_url":"https://api.github.com/users/mibadim/following{/other_user}","gists_url":"https://api.github.com/users/mibadim/gists{/gist_id}","starred_url":"https://api.github.com/users/mibadim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mibadim/subscriptions","organizations_url":"https://api.github.com/users/mibadim/orgs","repos_url":"https://api.github.com/users/mibadim/repos","events_url":"https://api.github.com/users/mibadim/events{/privacy}","received_events_url":"https://api.github.com/users/mibadim/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T14:14:44Z","updated_at":"2016-05-31T14:14:44Z","body":"This works, but re-setting the attributes after clearing them doesn't either."}}
{"actor":{"display_login":"mibadim"}}