{"action":"closed","issue":{"url":"https://api.github.com/repos/KevinMarquette/PSGraph/issues/80","repository_url":"https://api.github.com/repos/KevinMarquette/PSGraph","labels_url":"https://api.github.com/repos/KevinMarquette/PSGraph/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/KevinMarquette/PSGraph/issues/80/comments","events_url":"https://api.github.com/repos/KevinMarquette/PSGraph/issues/80/events","html_url":"https://github.com/KevinMarquette/PSGraph/issues/80","id":379461432,"node_id":"MDU6SXNzdWUzNzk0NjE0MzI=","number":80,"title":"Parameter Attributes on edge cmdlet doesn't work in complex scenario","user":{"login":"Stephanevg","id":6302961,"node_id":"MDQ6VXNlcjYzMDI5NjE=","avatar_url":"https://avatars0.githubusercontent.com/u/6302961?v=4","gravatar_id":"","url":"https://api.github.com/users/Stephanevg","html_url":"https://github.com/Stephanevg","followers_url":"https://api.github.com/users/Stephanevg/followers","following_url":"https://api.github.com/users/Stephanevg/following{/other_user}","gists_url":"https://api.github.com/users/Stephanevg/gists{/gist_id}","starred_url":"https://api.github.com/users/Stephanevg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stephanevg/subscriptions","organizations_url":"https://api.github.com/users/Stephanevg/orgs","repos_url":"https://api.github.com/users/Stephanevg/repos","events_url":"https://api.github.com/users/Stephanevg/events{/privacy}","received_events_url":"https://api.github.com/users/Stephanevg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-10T21:04:26Z","updated_at":"2018-11-10T21:43:53Z","closed_at":"2018-11-10T21:43:53Z","author_association":"NONE","body":"Hi Kevin,\r\n\r\nAs discussed on Slack, find here some more details on the problem I am facing:\r\n\r\nI am using [PSClassUtils](https://github.com/Stephanevg/PSClassUtils) in order to create UML diagrams using PSGraph.\r\n\r\nI am trying to set the arrow color of my edges from black (default) to white (none) in my diagrams.\r\n\r\nI use the following function to actually genere the Graphviz code --> https://github.com/Stephanevg/PSClassUtils/blob/master/PsClassUtils/Functions/Private/Out-CUPSGraph.ps1 \r\n\r\n(The Edge are actually created at line 174)\r\n```powershell\r\nedge -From $Child -To $Parent\r\n```\r\n\r\nI thought the change would be as simple as this:\r\n\r\n```powershell\r\nedge -From $Child -To $Parent -Attributes @{arrowhead = \"empty\"}\r\n```\r\n\r\nor this\r\n\r\n```powershell\r\nedge -From $Child -To $Parent -LiteralAttribute \"[arrowhead=\"empty\";]\" \r\n```\r\nBut in both cases, the 'edge' section of the end of the graph, has never the corresponding graphviz data \r\n\r\nI have tried using a complex, and more simple example, but in both cases, the data is simply not added:\r\n\r\n\r\n# Current behaviour\r\n\r\nI use the code, to generate edges in my diagram: \r\n\r\n```powershell\r\n\r\n#Line 174 from Out-CUPSGraph private function of PsClassUtils\r\nedge -From $Child -To $Parent -Attributes @{arrowhead = \"empty\"}\r\n```\r\nbut it generates:\r\n\r\n## Graphvizcode\r\n\r\n```graph\r\n\r\ndigraph g {\r\n    compound=\"true\";\r\n    subgraph cluster4867be98f6dd {\r\n        label=\"Inheritance.ps1\";\r\n        \"4867be98f6dd\" [label=\"\";style=\"invis\";shape=\"point\";]\r\n        \"Woop\" [label=<<TABLE CELLBORDER=\"1\" BORDER=\"0\" CELLSPACING=\"0\"><TR><TD bgcolor=\"black\" align=\"center\"><font color=\"white\"><B>Woop</B></font></TD></TR><TR><TD PORT=\"Row_String\" ALIGN=\"LEFT\">+ [String] $String</TD></TR><TR><TD PORT=\"Row_number\" ALIGN=\"LEFT\">+ [int] $number</TD></TR><TR><TD PORT=\"Row_Separator_Constructors\" ALIGN=\"LEFT\">-----Constructors-----</TD></TR><TR><TD PORT=\"Row_Woop\" ALIGN=\"LEFT\"> Woop([String]$String,[int]$Number)</TD></TR><TR><TD PORT=\"Row_Separator_Methods\" ALIGN=\"LEFT\">-----Methods-----</TD></TR><TR><TD PORT=\"Row_DoSomething\" ALIGN=\"LEFT\">+[String] DoSomething()</TD></TR></TABLE>>;fillcolor=\"white\";shape=\"none\";style=\"filled\";penwidth=\"1\";fontname=\"Courier New\";]\r\n        \"Wap\" [label=<<TABLE CELLBORDER=\"1\" BORDER=\"0\" CELLSPACING=\"0\"><TR><TD bgcolor=\"black\" align=\"center\"><font color=\"white\"><B>Wap</B></font></TD></TR><TR><TD PORT=\"Row_prop3\" ALIGN=\"LEFT\">+ [String] $prop3</TD></TR><TR><TD PORT=\"Row_Separator_Constructors\" ALIGN=\"LEFT\">-----Constructors-----</TD></TR><TR><TD PORT=\"Row_Separator_Methods\" ALIGN=\"LEFT\">-----Methods-----</TD></TR><TR><TD PORT=\"Row_DoChildthing\" ALIGN=\"LEFT\">+ DoChildthing()</TD></TR></TABLE>>;fillcolor=\"white\";shape=\"none\";style=\"filled\";penwidth=\"1\";fontname=\"Courier New\";]\r\n        \"Wep\" [label=<<TABLE CELLBORDER=\"1\" BORDER=\"0\" CELLSPACING=\"0\"><TR><TD bgcolor=\"black\" align=\"center\"><font color=\"white\"><B>Wep</B></font></TD></TR><TR><TD PORT=\"Row_prop4\" ALIGN=\"LEFT\">+ [String] $prop4</TD></TR><TR><TD PORT=\"Row_Separator_Constructors\" ALIGN=\"LEFT\">-----Constructors-----</TD></TR><TR><TD PORT=\"Row_Separator_Methods\" ALIGN=\"LEFT\">-----Methods-----</TD></TR><TR><TD PORT=\"Row_DoOtherChildThing\" ALIGN=\"LEFT\">+ DoOtherChildThing()</TD></TR></TABLE>>;fillcolor=\"white\";shape=\"none\";style=\"filled\";penwidth=\"1\";fontname=\"Courier New\";]\r\n    }\r\n\r\n    \"Woop\"->\"Wap\" \r\n    \"Woop\"->\"Wep\" \r\n}\r\n```\r\n## Image\r\n\r\n![image](https://user-images.githubusercontent.com/6302961/48305912-40ea7480-e533-11e8-92d4-4b5243391a08.png)\r\n\r\n# Expected Bahaviour\r\n\r\nThis is what I would expect to be generated\r\n\r\n```Graphviz\r\ndigraph g {\r\n    compound=\"true\";\r\n    subgraph cluster4867be98f6dd {\r\n        label=\"Inheritance.ps1\";\r\n        \"4867be98f6dd\" [label=\"\";style=\"invis\";shape=\"point\";]\r\n        \"Woop\" [label=<<TABLE CELLBORDER=\"1\" BORDER=\"0\" CELLSPACING=\"0\"><TR><TD bgcolor=\"black\" align=\"center\"><font color=\"white\"><B>Woop</B></font></TD></TR><TR><TD PORT=\"Row_String\" ALIGN=\"LEFT\">+ [String] $String</TD></TR><TR><TD PORT=\"Row_number\" ALIGN=\"LEFT\">+ [int] $number</TD></TR><TR><TD PORT=\"Row_Separator_Constructors\" ALIGN=\"LEFT\">-----Constructors-----</TD></TR><TR><TD PORT=\"Row_Woop\" ALIGN=\"LEFT\"> Woop([String]$String,[int]$Number)</TD></TR><TR><TD PORT=\"Row_Separator_Methods\" ALIGN=\"LEFT\">-----Methods-----</TD></TR><TR><TD PORT=\"Row_DoSomething\" ALIGN=\"LEFT\">+[String] DoSomething()</TD></TR></TABLE>>;fillcolor=\"white\";shape=\"none\";style=\"filled\";penwidth=\"1\";fontname=\"Courier New\";]\r\n        \"Wap\" [label=<<TABLE CELLBORDER=\"1\" BORDER=\"0\" CELLSPACING=\"0\"><TR><TD bgcolor=\"black\" align=\"center\"><font color=\"white\"><B>Wap</B></font></TD></TR><TR><TD PORT=\"Row_prop3\" ALIGN=\"LEFT\">+ [String] $prop3</TD></TR><TR><TD PORT=\"Row_Separator_Constructors\" ALIGN=\"LEFT\">-----Constructors-----</TD></TR><TR><TD PORT=\"Row_Separator_Methods\" ALIGN=\"LEFT\">-----Methods-----</TD></TR><TR><TD PORT=\"Row_DoChildthing\" ALIGN=\"LEFT\">+ DoChildthing()</TD></TR></TABLE>>;fillcolor=\"white\";shape=\"none\";style=\"filled\";penwidth=\"1\";fontname=\"Courier New\";]\r\n        \"Wep\" [label=<<TABLE CELLBORDER=\"1\" BORDER=\"0\" CELLSPACING=\"0\"><TR><TD bgcolor=\"black\" align=\"center\"><font color=\"white\"><B>Wep</B></font></TD></TR><TR><TD PORT=\"Row_prop4\" ALIGN=\"LEFT\">+ [String] $prop4</TD></TR><TR><TD PORT=\"Row_Separator_Constructors\" ALIGN=\"LEFT\">-----Constructors-----</TD></TR><TR><TD PORT=\"Row_Separator_Methods\" ALIGN=\"LEFT\">-----Methods-----</TD></TR><TR><TD PORT=\"Row_DoOtherChildThing\" ALIGN=\"LEFT\">+ DoOtherChildThing()</TD></TR></TABLE>>;fillcolor=\"white\";shape=\"none\";style=\"filled\";penwidth=\"1\";fontname=\"Courier New\";]\r\n    }\r\n\r\n    \"Woop\"->\"Wap\" [arrowhead=\"empty\";]\r\n    \"Woop\"->\"Wep\" [arrowhead=\"empty\";]\r\n}\r\n\r\n```\r\n\r\n## Image\r\n\r\n![image](https://user-images.githubusercontent.com/6302961/48305955-cec65f80-e533-11e8-8744-6e9d7e972cf6.png)\r\n\r\n# Reproduction of the problem\r\nThis is how you can reproduce the example:\r\n\r\nDownload PsClassUtils ```Install-Module PsClassUtils```\r\n\r\nChange line 174 of Out-CUPasGraph (located ```$ModulesFolder\\PSClassUtils\\Functions\\Private\\Out-CUPSGraph.ps1```)\r\n\r\nfrom \r\n\r\n```powershell\r\nedge -From $Child -To $Parent\r\n```\r\n\r\nto\r\n\r\n```powershell\r\nedge -From $Child -To $Parent -Attributes @{arrowhead = \"empty\"}\r\n```\r\n\r\nor \r\n\r\n```powershell\r\nedge -From $Child -To $Parent -LiteralAttribute \"[arrowhead=\"empty\";]\" \r\n```\r\n\r\nopen ps prompt as admin, and type the following:\r\n\r\n\r\n\r\n```powershell\r\nWrite-CUClassDiagram -Path $ClassWithInheritance -Show -Passthru\r\n```\r\n(-Passthru will output the Graphviz code generated)\r\nIf you need a ps1 file with inheritance, check in the example folder: ```$ModulesFolder\\PSClassUtils\\Examples\\02\\Inheritance.ps1```\r\n\r\nDon't hesitate to shoot me a message on slack, if you want me to test something.\r\n\r\nSanté!\r\n#Stéphane \r\n\r\n\r\n"}}
{"actor":{"display_login":"Stephanevg"}}