{"action":"created","issue":{"url":"https://api.github.com/repos/hbmartin/graphviz2drawio/issues/1","repository_url":"https://api.github.com/repos/hbmartin/graphviz2drawio","labels_url":"https://api.github.com/repos/hbmartin/graphviz2drawio/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/hbmartin/graphviz2drawio/issues/1/comments","events_url":"https://api.github.com/repos/hbmartin/graphviz2drawio/issues/1/events","html_url":"https://github.com/hbmartin/graphviz2drawio/issues/1","id":353892026,"node_id":"MDU6SXNzdWUzNTM4OTIwMjY=","number":1,"title":"Simple example fails with `IndexError`","user":{"login":"zdk123","id":2637124,"node_id":"MDQ6VXNlcjI2MzcxMjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2637124?v=4","gravatar_id":"","url":"https://api.github.com/users/zdk123","html_url":"https://github.com/zdk123","followers_url":"https://api.github.com/users/zdk123/followers","following_url":"https://api.github.com/users/zdk123/following{/other_user}","gists_url":"https://api.github.com/users/zdk123/gists{/gist_id}","starred_url":"https://api.github.com/users/zdk123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdk123/subscriptions","organizations_url":"https://api.github.com/users/zdk123/orgs","repos_url":"https://api.github.com/users/zdk123/repos","events_url":"https://api.github.com/users/zdk123/events{/privacy}","received_events_url":"https://api.github.com/users/zdk123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-24T18:54:49Z","updated_at":"2018-08-28T03:48:07Z","closed_at":null,"author_association":"NONE","body":"Thanks for this tool... and very timely for me.\r\n\r\nYour SmileyFace example is working fine, but simple graphs seem to fail. For example, the [PyGraphics quick example](https://pygraphviz.github.io/examples.html):\r\n\r\n```\r\nimport pygraphviz as pgv\r\nG = pgv.AGraph()\r\nG.add_node('a')\r\nG.add_edge('b','c')\r\n```\r\n```\r\nfrom graphviz2drawio import graphviz2drawio\r\ngraphviz2drawio.convert(G)\r\n```\r\ngives:\r\n```\r\n    nodes, edges = SVG.parse(svg_graph)\r\n  File \"/Users/zachary/miniconda3/envs/py36/lib/python3.6/site-packages/graphviz2drawio/models/SVG.py\", line 20, in parse\r\n    nodes[title] = node_factory.from_svg(g)\r\n  File \"/Users/zachary/miniconda3/envs/py36/lib/python3.6/site-packages/graphviz2drawio/models/NodeFactory.py\", line 46, in from_svg\r\n    rect = self.rect_from_svg_points(SVG.get_first(g, \"polygon\").attrib[\"points\"])\r\n  File \"/Users/zachary/miniconda3/envs/py36/lib/python3.6/site-packages/graphviz2drawio/models/SVG.py\", line 28, in get_first\r\n    return g.findall(\"./{http://www.w3.org/2000/svg}\" + tag)[0]\r\nIndexError: list index out of range\r\n```\r\n\r\nthanks!"},"comment":{"url":"https://api.github.com/repos/hbmartin/graphviz2drawio/issues/comments/416441941","html_url":"https://github.com/hbmartin/graphviz2drawio/issues/1#issuecomment-416441941","issue_url":"https://api.github.com/repos/hbmartin/graphviz2drawio/issues/1","id":416441941,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjQ0MTk0MQ==","user":{"login":"hbmartin","id":745166,"node_id":"MDQ6VXNlcjc0NTE2Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/745166?v=4","gravatar_id":"","url":"https://api.github.com/users/hbmartin","html_url":"https://github.com/hbmartin","followers_url":"https://api.github.com/users/hbmartin/followers","following_url":"https://api.github.com/users/hbmartin/following{/other_user}","gists_url":"https://api.github.com/users/hbmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/hbmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbmartin/subscriptions","organizations_url":"https://api.github.com/users/hbmartin/orgs","repos_url":"https://api.github.com/users/hbmartin/repos","events_url":"https://api.github.com/users/hbmartin/events{/privacy}","received_events_url":"https://api.github.com/users/hbmartin/received_events","type":"User","site_admin":false},"created_at":"2018-08-28T03:48:07Z","updated_at":"2018-08-28T03:48:07Z","author_association":"OWNER","body":"@zdk123 please try the 0.0.3 release and let me know how that looks.\r\nThe next release will address the odd edge shape."}}
{"actor":{"display_login":"hbmartin"}}