On Sunday, May 28, 2017 at 1:03:05 PM UTC+1, Jan Hrček wrote:
>
> Would some of you find such library useful? If so what functionality it 
> should provide?
>
> My idea for the functionality provided by the library would be this:
>
> What you provide: 
> - a graph with some data (probably based on elm-community/graph)
> - parameters of the layout algorithms (similar to what you see in the 
> prototype)
> - node and edge rendering function (something returning Svg elements for 
> rendering nodes and edges, given (x,y) coordinates of the nodes)
>
> What library would do for you: 
> - it would enrich the graph by adding "node position" information and 
> would simulate how these positions change over time
>

I think you pretty much captured how I would imagine it would work as a 
library. The simulations of how positions change over time might work by 
providing a subscription in a similar manner to how 
'mdgriffith/elm-style-animation' works?

http://package.elm-lang.org/packages/mdgriffith/elm-style-animation/latest/

By chance, I am also working on graph layouts at the moment. A force 
directed layout might be useful to me. Unfortunately it won't do exactly 
what I need, but I might be able to make use of it to do an approximate 
initial layout, or to optimize a layout that I have produced by other 
methods. The approach I am taking to laying out my diagrams is going to be 
based on searching for solutions based an heuristics like number of links 
crossing, length of the links, number of corners in links and so on. The 
diagrams I am working with are like entity-relationship diagrams - with 
boxes and links between them.

>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to