{"action":"closed","issue":{"url":"https://api.github.com/repos/networkx/networkx/issues/1718","labels_url":"https://api.github.com/repos/networkx/networkx/issues/1718/labels{/name}","comments_url":"https://api.github.com/repos/networkx/networkx/issues/1718/comments","events_url":"https://api.github.com/repos/networkx/networkx/issues/1718/events","html_url":"https://github.com/networkx/networkx/issues/1718","id":99708880,"number":1718,"title":"Lose digraph ordering when creating a duplicate","user":{"login":"harlowja","id":970458,"avatar_url":"https://avatars.githubusercontent.com/u/970458?v=3","gravatar_id":"","url":"https://api.github.com/users/harlowja","html_url":"https://github.com/harlowja","followers_url":"https://api.github.com/users/harlowja/followers","following_url":"https://api.github.com/users/harlowja/following{/other_user}","gists_url":"https://api.github.com/users/harlowja/gists{/gist_id}","starred_url":"https://api.github.com/users/harlowja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harlowja/subscriptions","organizations_url":"https://api.github.com/users/harlowja/orgs","repos_url":"https://api.github.com/users/harlowja/repos","events_url":"https://api.github.com/users/harlowja/events{/privacy}","received_events_url":"https://api.github.com/users/harlowja/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/networkx/networkx/labels/Defect","name":"Defect","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"dschult","id":915037,"avatar_url":"https://avatars.githubusercontent.com/u/915037?v=3","gravatar_id":"","url":"https://api.github.com/users/dschult","html_url":"https://github.com/dschult","followers_url":"https://api.github.com/users/dschult/followers","following_url":"https://api.github.com/users/dschult/following{/other_user}","gists_url":"https://api.github.com/users/dschult/gists{/gist_id}","starred_url":"https://api.github.com/users/dschult/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschult/subscriptions","organizations_url":"https://api.github.com/users/dschult/orgs","repos_url":"https://api.github.com/users/dschult/repos","events_url":"https://api.github.com/users/dschult/events{/privacy}","received_events_url":"https://api.github.com/users/dschult/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-08-07T19:03:41Z","updated_at":"2015-08-08T00:30:09Z","closed_at":"2015-08-08T00:30:09Z","body":"I am seeing the following, which doesn't look right at all.\r\n\r\n```\r\n>>> import networkx as nx\r\n>>> g = nx.OrderedDiGraph()\r\n>>> g.add_node('a')\r\n>>> g.add_node('b')\r\n>>> g.add_node('c')\r\n>>> list(g)\r\n['a', 'b', 'c']\r\n>>> g1 = nx.OrderedDiGraph(g)\r\n>>> list(g1)\r\n['a', 'c', 'b']\r\n```\r\n\r\nIt seems the order is being lost when the graph is being copied (which is the recommended way to generate a new graph, if the prior one is frozen for example); this doesn't feel like what would be the expected result here.\r\n\r\n```\r\n$ pip freeze | grep networkx\r\nnetworkx==1.10\r\n$ python --version\r\nPython 2.7.10"}}