I see this in examples all the time (like the ethane molecule one) and it is never explained.
What is [type=s]? what are the different types?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume you’re referring to the ethane molecule example on Wikipedia’s DOT language page:
A few things of interest:
The use of attribute
typeon the Wikipedia page dates back to 2004 and is in the first version of the page, almost identical to the version there today.There is no attribute
typelisted in the current graphviz documentation.I installed graphviz 1.14 and its DOT documentation (circa 2002) does not list
typeas an attribute.I found DOT documentation for graphviz 1.7, dated 1996. It doesn’t list attribute
typeeither.Removing the
typeattributes from the graph or changing their values does not affect the output for the current version of graphviz or version 1.14.Various attributes have changed over time, and it’s possible that
typeis the old name of something liketailPort, which accepts aportPosfor input to indicate which side of a node to attach the edge (“s” for “south”, “n” for “north”, etc). Maybe it was used in a version that I don’t have the documentation for. Or maybe it was never used at all, and people just faithfully copied it from Wikipedia. 😉