{"action":"created","issue":{"url":"https://api.github.com/repos/networkx/networkx/issues/947","labels_url":"https://api.github.com/repos/networkx/networkx/issues/947/labels{/name}","comments_url":"https://api.github.com/repos/networkx/networkx/issues/947/comments","events_url":"https://api.github.com/repos/networkx/networkx/issues/947/events","html_url":"https://github.com/networkx/networkx/issues/947","id":18912552,"number":947,"title":"gexf parser conflict with gephi importer","user":{"login":"gdbassett","id":1392552,"avatar_url":"https://avatars.githubusercontent.com/u/1392552?v=3","gravatar_id":"","url":"https://api.github.com/users/gdbassett","html_url":"https://github.com/gdbassett","followers_url":"https://api.github.com/users/gdbassett/followers","following_url":"https://api.github.com/users/gdbassett/following{/other_user}","gists_url":"https://api.github.com/users/gdbassett/gists{/gist_id}","starred_url":"https://api.github.com/users/gdbassett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdbassett/subscriptions","organizations_url":"https://api.github.com/users/gdbassett/orgs","repos_url":"https://api.github.com/users/gdbassett/repos","events_url":"https://api.github.com/users/gdbassett/events{/privacy}","received_events_url":"https://api.github.com/users/gdbassett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"hagberg","id":187875,"avatar_url":"https://avatars.githubusercontent.com/u/187875?v=3","gravatar_id":"","url":"https://api.github.com/users/hagberg","html_url":"https://github.com/hagberg","followers_url":"https://api.github.com/users/hagberg/followers","following_url":"https://api.github.com/users/hagberg/following{/other_user}","gists_url":"https://api.github.com/users/hagberg/gists{/gist_id}","starred_url":"https://api.github.com/users/hagberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hagberg/subscriptions","organizations_url":"https://api.github.com/users/hagberg/orgs","repos_url":"https://api.github.com/users/hagberg/repos","events_url":"https://api.github.com/users/hagberg/events{/privacy}","received_events_url":"https://api.github.com/users/hagberg/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2013-09-03T14:49:33Z","updated_at":"2015-11-25T19:21:01Z","closed_at":null,"body":"I have an issue importing gexf files from networkx into gephi.  The issue seems to be around duplicate attributes.  I don't know all the cases in which gephi ignores attributes, however it at least ignores exact matches as well as case-insensitive matches.  Here's a simple example of a list of attributes and the associated output\"\r\n```\r\n    <attributes class=\"edge\" mode=\"static\">\r\n      <attribute id=\"4\" title=\"Relationship_Type\" type=\"string\" />\r\n    </attributes>\r\n    <attributes class=\"node\" mode=\"static\">\r\n      <attribute id=\"0\" title=\"color\" type=\"string\" />\r\n      <attribute id=\"1\" title=\"number\" type=\"integer\" />\r\n      <attribute id=\"2\" title=\"Color\" type=\"string\" />\r\n      <attribute id=\"3\" title=\"Candy\" type=\"integer\" />\r\n    </attributes>\r\n```\r\n\r\nHere's the error:\r\n```\r\nDefault edge type set as UNDIRECTED\r\nGEXF version 1.1 (deprecated)\r\nEdge attribute found 'Relationship_Type' (STRING)\r\nNode attribute found 'color' (STRING)\r\nNode attribute found 'number' (INT)\r\nAttribute with id '2' already exists, the attribute is ignored\r\nNode attribute found 'Candy' (INT)\r\n```\r\n\r\nHere's a more complex example:\r\n```\r\n    <attributes class=\"edge\" mode=\"static\">\r\n      <attribute id=\"26\" title=\"Relationship_Type\" type=\"string\" />\r\n      <attribute id=\"27\" title=\"totalBytes\" type=\"double\" />\r\n      <attribute id=\"28\" title=\"totalFlows\" type=\"double\" />\r\n    </attributes>\r\n    <attributes class=\"edge\" mode=\"dynamic\">\r\n      <attribute id=\"22\" title=\"Relationship_Type\" type=\"string\" />\r\n      <attribute id=\"23\" title=\"totalBytes\" type=\"double\" />\r\n      <attribute id=\"24\" title=\"start\" type=\"string\" />\r\n      <attribute id=\"25\" title=\"totalFlows\" type=\"integer\" />\r\n    </attributes>\r\n    <attributes class=\"node\" mode=\"dynamic\">\r\n      <attribute id=\"12\" title=\"bytesInAsClient\" type=\"integer\" />\r\n      <attribute id=\"13\" title=\"bytesOutAsServer\" type=\"integer\" />\r\n      <attribute id=\"14\" title=\"bytesOutAsClient\" type=\"integer\" />\r\n      <attribute id=\"15\" title=\"start\" type=\"string\" />\r\n      <attribute id=\"16\" title=\"DNS\" type=\"string\" />\r\n      <attribute id=\"17\" title=\"flowsAsServer\" type=\"integer\" />\r\n      <attribute id=\"18\" title=\"model\" type=\"string\" />\r\n      <attribute id=\"19\" title=\"flowsAsClient\" type=\"integer\" />\r\n      <attribute id=\"20\" title=\"Class\" type=\"string\" />\r\n      <attribute id=\"21\" title=\"bytesInAsServer\" type=\"integer\" />\r\n    </attributes>\r\n    <attributes class=\"node\" mode=\"static\">\r\n      <attribute id=\"0\" title=\"coid\" type=\"string\" />\r\n      <attribute id=\"1\" title=\"DNS\" type=\"string\" />\r\n      <attribute id=\"2\" title=\"ip\" type=\"string\" />\r\n      <attribute id=\"3\" title=\"model\" type=\"string\" />\r\n      <attribute id=\"4\" title=\"cidr\" type=\"string\" />\r\n      <attribute id=\"5\" title=\"Class\" type=\"string\" />\r\n      <attribute id=\"6\" title=\"bytesInAsClient\" type=\"integer\" />\r\n      <attribute id=\"7\" title=\"bytesOutAsServer\" type=\"integer\" />\r\n      <attribute id=\"8\" title=\"bytesOutAsClient\" type=\"integer\" />\r\n      <attribute id=\"9\" title=\"flowsAsServer\" type=\"integer\" />\r\n      <attribute id=\"10\" title=\"flowsAsClient\" type=\"integer\" />\r\n      <attribute id=\"11\" title=\"bytesInAsServer\" type=\"integer\" />\r\n    </attributes>\r\n```\r\n\r\nHere are the gephi errors:\r\n```\r\nDefault edge type set as UNDIRECTED\r\nGEXF version 1.1 (deprecated)\r\nEdge attribute found 'Relationship_Type' (STRING)\r\nEdge attribute found 'totalBytes' (DOUBLE)\r\nEdge attribute found 'totalFlows' (DOUBLE)\r\nAttribute with id '22' already exists, the attribute is ignored\r\nAttribute with id '23' already exists, the attribute is ignored\r\nEdge attribute found 'start' (DYNAMIC_STRING)\r\nAttribute with id '25' already exists, the attribute is ignored\r\nNode attribute found 'bytesInAsClient' (DYNAMIC_INT)\r\nNode attribute found 'bytesOutAsServer' (DYNAMIC_INT)\r\nNode attribute found 'bytesOutAsClient' (DYNAMIC_INT)\r\nNode attribute found 'start' (DYNAMIC_STRING)\r\nNode attribute found 'DNS' (DYNAMIC_STRING)\r\nNode attribute found 'flowsAsServer' (DYNAMIC_INT)\r\nNode attribute found 'model' (DYNAMIC_STRING)\r\nNode attribute found 'flowsAsClient' (DYNAMIC_INT)\r\nNode attribute found 'Class' (DYNAMIC_STRING)\r\nNode attribute found 'bytesInAsServer' (DYNAMIC_INT)\r\nNode attribute found 'coid' (STRING)\r\nAttribute with id '1' already exists, the attribute is ignored\r\nNode attribute found 'ip' (STRING)\r\nAttribute with id '3' already exists, the attribute is ignored\r\nNode attribute found 'cidr' (STRING)\r\nAttribute with id '5' already exists, the attribute is ignored\r\nAttribute with id '6' already exists, the attribute is ignored\r\nAttribute with id '7' already exists, the attribute is ignored\r\nAttribute with id '8' already exists, the attribute is ignored\r\nAttribute with id '9' already exists, the attribute is ignored\r\nAttribute with id '10' already exists, the attribute is ignored\r\nAttribute with id '11' already exists, the attribute is ignored\r\nTime Format: DOUBLE\r\n```\r\n\r\nI don't know if this a networkx thing, a gephi thing, or a gexf thing however it causes a significant number of issues with importing a graph that has nodes added in different way sat different times.\r\n\r\n(Also, ignore the dynamic_int's.  Those are caused by gephi seeing the 'start' time attribute and consequently time phasing a bunch of the attributes.)\r\n"},"comment":{"url":"https://api.github.com/repos/networkx/networkx/issues/comments/159706182","html_url":"https://github.com/networkx/networkx/issues/947#issuecomment-159706182","issue_url":"https://api.github.com/repos/networkx/networkx/issues/947","id":159706182,"user":{"login":"mbastian","id":234813,"avatar_url":"https://avatars.githubusercontent.com/u/234813?v=3","gravatar_id":"","url":"https://api.github.com/users/mbastian","html_url":"https://github.com/mbastian","followers_url":"https://api.github.com/users/mbastian/followers","following_url":"https://api.github.com/users/mbastian/following{/other_user}","gists_url":"https://api.github.com/users/mbastian/gists{/gist_id}","starred_url":"https://api.github.com/users/mbastian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbastian/subscriptions","organizations_url":"https://api.github.com/users/mbastian/orgs","repos_url":"https://api.github.com/users/mbastian/repos","events_url":"https://api.github.com/users/mbastian/events{/privacy}","received_events_url":"https://api.github.com/users/mbastian/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T19:21:01Z","updated_at":"2015-11-25T19:21:01Z","body":"And BTW, we're working on some adjustments on the GEXF format (version 1.3). You can see the discussion here: https://github.com/gephi/gephi/issues/1152. Feel free to chime in if there's something that would make the interconnection between networkx and gephi easier. Much appreciated!"}}