[erlang-questions] digraph questions

Lloyd R. Prentice lloyd@REDACTED
Tue Apr 9 05:33:35 CEST 2019


Many thanks, Richard. I’ll definitively follow up.

Can you tell me how to return the labels?

All the best,

Lloyd

Sent from my iPad

> On Apr 8, 2019, at 8:46 PM, Richard O'Keefe <raoknz@REDACTED> wrote:
> 
> The obvious way to visualise a graph would be to drive
> something like GraphViz or Gephi or, ideally, UbiGraph
> (https://github.com/alan86alves/ubigraph_server has a
> copy of the Linux x86-64 version; the official source
> is currently unreachable).  There is an erlubi. But
> perhaps the thing you might want to look at first is
> https://github.com/aol/erlgraph
> It will take a bit of patching to get up to date with
> current versions of Erlang and Cowboy.
> 
>> On Tue, 9 Apr 2019 at 11:29, <lloyd@REDACTED> wrote:
>> The Erlang digraph library looks like it may provide an interesting way to diagram scenes in a novel.
>>  
>> 1> Scene10 = digraph:new().
>>  
>> Imagine:
>>  
>> Setting:"park"
>> Character1:"Franco"
>> Character2:"Sophia"
>>  
>> 2> digraph:add_vertex(Scene10, "Park", "Night").
>> 3> digraph:add_vertex(Scene10, "Franco", "Old and fat").
>> 4> digraph:add_vertex(Scene10, "Sophia", "Young and beautiful").
>> 5> digraph:add_edge(Scene10, "Franco", "Sophia", "loves").
>>  
>> OK to here EXCEPT command 5 returns:
>>  
>> ['$e'|0]
>>  
>> 6> digraph:add_edge(Scene10, "Sophia", "Franco", "hates").
>>  
>> OK to here EXCEPT command 5 returns:
>>  
>> ['$e'|0]
>>  
>> 6> digraph:add_edge(Scene10, "Sophia", "Franco", "hates").
>> ['$e'|1]
>>  
>> Wah!
>>  
>> Question 1: How do I see labels?
>>  
>> Question 2: Be cool to add a sequence of actions. I can probably figure this out, but is there an elegant solution?
>>  
>> Question 3: I'd love to visualize the graph. I see it can be done in Elixir. But I don't know Elixir. Has anyone programmed a way to visualize digraphs in Erlang?
>>  
>> Comment: Digraph is crying out for a comprehensive tutorial. I'd love to do it, but just don't know enough yet.
>>  
>> Many thanks,
>>  
>> LRP
>>  
>>  
>>  
>>  
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190408/48e96290/attachment.htm>


More information about the erlang-questions mailing list