dot :: AttributeMap :: defaultinit
# Map of graph/node/edge attribute that can be rendered to dot.
class AttributeMap
super HashMap[String, Object]
# Render `self` to dot.
#
# Use `;` for graph attributes `separator` or `,` for node and edge attributes.
fun to_dot(separator: String): Text do
var dot = new Buffer
for key, value in self do
dot.append "{key}=\"{value.to_s}\"{separator}"
end
return dot
end
end
lib/dot/dot.nit:59,1--73,3