Skip to content

Instantly share code, notes, and snippets.

@Ringoxue
Ringoxue / draw_dep.jl
Created September 30, 2016 16:31 — forked from ylxdzsw/draw_dep.jl
generate dot code that can generates a graph of an abstract julia type
function draw_dep(T::Type)
_draw(T::ANY) = for t in subtypes(T)
println(g, """ "$T" -> "$t" """)
_draw(t)
end
g = IOBuffer()
println(g, "digraph dep {")
_draw(T)
println(g, "}")