{"action":"created","issue":{"url":"https://api.github.com/repos/ivan-m/graphviz/issues/11","repository_url":"https://api.github.com/repos/ivan-m/graphviz","labels_url":"https://api.github.com/repos/ivan-m/graphviz/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/ivan-m/graphviz/issues/11/comments","events_url":"https://api.github.com/repos/ivan-m/graphviz/issues/11/events","html_url":"https://github.com/ivan-m/graphviz/issues/11","id":166479356,"number":11,"title":"The label argument to `graphElemsToDot` don't appear to be used","user":{"login":"seagreen","id":1310143,"avatar_url":"https://avatars.githubusercontent.com/u/1310143?v=3","gravatar_id":"","url":"https://api.github.com/users/seagreen","html_url":"https://github.com/seagreen","followers_url":"https://api.github.com/users/seagreen/followers","following_url":"https://api.github.com/users/seagreen/following{/other_user}","gists_url":"https://api.github.com/users/seagreen/gists{/gist_id}","starred_url":"https://api.github.com/users/seagreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seagreen/subscriptions","organizations_url":"https://api.github.com/users/seagreen/orgs","repos_url":"https://api.github.com/users/seagreen/repos","events_url":"https://api.github.com/users/seagreen/events{/privacy}","received_events_url":"https://api.github.com/users/seagreen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-20T02:13:59Z","updated_at":"2016-07-20T03:29:41Z","closed_at":null,"body":"I think this is just a documentation issue, but it's hard to figure out what the last item in the tuples passed to `graphInDotFormat` are meant to be used for. In my exploration of the types it appears they're related to labeling vertices/edges, but changing them isn't affecting the generated `.dot` file at all.\r\n\r\nHaskell code:\r\n```haskell\r\nfoo :: IO ()\r\nfoo = do\r\n    let graphInDotFormat = graphElemsToDot nonClusteredParams vertices edges\r\n        outputText = renderDot $ toDot graphInDotFormat\r\n    liftIO $ TIO.writeFile \"graph.dot\" (TL.toStrict outputText)\r\n  where\r\n    vertices :: [(Int,String)]\r\n    vertices = [(1,\"foo\"),(2, \"bar\")]\r\n\r\n    edges :: [(Int,Int,String)]\r\n    edges = [(1,2,\"baz\")]\r\n```\r\n\r\nOutput:\r\n```\r\ndigraph {\r\n    1;\r\n    2;\r\n    1 -> 2;\r\n}\r\n```\r\n\r\nMy goal is to take a list of (uniqueIds, labels) and output it as `.dot` nodes, and another list of (uniqueIds, uniqueIds) and output it as `.dot` edges. Is there a place in the docs that talks about how to do this?"},"comment":{"url":"https://api.github.com/repos/ivan-m/graphviz/issues/comments/233829298","html_url":"https://github.com/ivan-m/graphviz/issues/11#issuecomment-233829298","issue_url":"https://api.github.com/repos/ivan-m/graphviz/issues/11","id":233829298,"user":{"login":"ivan-m","id":792435,"avatar_url":"https://avatars.githubusercontent.com/u/792435?v=3","gravatar_id":"","url":"https://api.github.com/users/ivan-m","html_url":"https://github.com/ivan-m","followers_url":"https://api.github.com/users/ivan-m/followers","following_url":"https://api.github.com/users/ivan-m/following{/other_user}","gists_url":"https://api.github.com/users/ivan-m/gists{/gist_id}","starred_url":"https://api.github.com/users/ivan-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivan-m/subscriptions","organizations_url":"https://api.github.com/users/ivan-m/orgs","repos_url":"https://api.github.com/users/ivan-m/repos","events_url":"https://api.github.com/users/ivan-m/events{/privacy}","received_events_url":"https://api.github.com/users/ivan-m/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T03:29:41Z","updated_at":"2016-07-20T03:29:41Z","body":"Well, if that was the default, it would place extra constraints on the types allowed for the labels... which you don't want to always do.\r\n\r\nWhat _might_ be more useful is to have a variant with these defined for people."}}
{"actor":{"display_login":"ivan-m"}}