Re: [julia-users] Re: Visualizing a Julia AST (abstract syntax tree) as a tree

2016-09-22 Thread David P. Sanders


El jueves, 22 de septiembre de 2016, 10:29:11 (UTC-4), Tom Breloff escribió:
>
> Hi David this is very cool and useful!  I'd be happy to have it in 
> PlotRecipes if you don't find a better home for it.  If there's a generic 
> function to produce an adjacency list then we could use my graph recipes.  
> When I have the time (i.e. soonish when I really want nicer graphs) I plan 
> on incorporating the new GraphLayout into the recipes.  Let me know.
>

Hi Tom,

That sounds like a pretty good idea, though I have to say I haven't grokked 
PlotRecipes yet.

Since LightGraphs.jl doesn't support labelled graphs, maybe 

https://github.com/JuliaGraphs/Networks.jl

is the right solution? Do you have any suggestions about this?


 

>
> Tom
>
> On Thu, Sep 22, 2016 at 10:12 AM, David P. Sanders  > wrote:
>
>>
>>
>> 
>>
>> Here's an example of the output.
>>
>>
>> El miércoles, 21 de septiembre de 2016, 17:24:52 (UTC-4), David P. 
>> Sanders escribió:
>>>
>>> Hi,
>>>
>>> In case it's useful for anybody, the following notebook shows how to use 
>>> the LightGraphs and TikzGraphs packages
>>> to visualize a Julia abstract syntax tree (Expression object) as an 
>>> actual tree:
>>>
>>> https://gist.github.com/dpsanders/5cc1acff2471d27bc583916e00d43387
>>>
>>> Currently it requires the master branch of TikzGraphs.jl.
>>>
>>> It would be great to have some kind of Julia snippet repository for this 
>>> kind of thing that is less than a package but
>>> provides some kind of useful functionality. 
>>>
>>> David.
>>>
>>>
>>>
>

Re: [julia-users] Re: Visualizing a Julia AST (abstract syntax tree) as a tree

2016-09-22 Thread Tom Breloff
Hi David this is very cool and useful!  I'd be happy to have it in
PlotRecipes if you don't find a better home for it.  If there's a generic
function to produce an adjacency list then we could use my graph recipes.
When I have the time (i.e. soonish when I really want nicer graphs) I plan
on incorporating the new GraphLayout into the recipes.  Let me know.

Tom

On Thu, Sep 22, 2016 at 10:12 AM, David P. Sanders 
wrote:

>
>
> 
>
> Here's an example of the output.
>
>
> El miércoles, 21 de septiembre de 2016, 17:24:52 (UTC-4), David P. Sanders
> escribió:
>>
>> Hi,
>>
>> In case it's useful for anybody, the following notebook shows how to use
>> the LightGraphs and TikzGraphs packages
>> to visualize a Julia abstract syntax tree (Expression object) as an
>> actual tree:
>>
>> https://gist.github.com/dpsanders/5cc1acff2471d27bc583916e00d43387
>>
>> Currently it requires the master branch of TikzGraphs.jl.
>>
>> It would be great to have some kind of Julia snippet repository for this
>> kind of thing that is less than a package but
>> provides some kind of useful functionality.
>>
>> David.
>>
>>
>>


[julia-users] Re: Visualizing a Julia AST (abstract syntax tree) as a tree

2016-09-22 Thread David P. Sanders





Here's an example of the output.


El miércoles, 21 de septiembre de 2016, 17:24:52 (UTC-4), David P. Sanders 
escribió:
>
> Hi,
>
> In case it's useful for anybody, the following notebook shows how to use 
> the LightGraphs and TikzGraphs packages
> to visualize a Julia abstract syntax tree (Expression object) as an actual 
> tree:
>
> https://gist.github.com/dpsanders/5cc1acff2471d27bc583916e00d43387
>
> Currently it requires the master branch of TikzGraphs.jl.
>
> It would be great to have some kind of Julia snippet repository for this 
> kind of thing that is less than a package but
> provides some kind of useful functionality. 
>
> David.
>
>
>