These are chat archives for xyncro/hekate

17th
Mar 2016
Andrew Cherry
@kolektiv
Mar 17 2016 09:20
hi @HellSt0rm ! at the moment i'm not working on anything in particular around that - it's fairly stable and does useful things. however, that being said, i could at least go through and write some type documentation for the public API which would make it more discoverable.
hopefully the functions/modules under the Graph module are reasonably self-explanatory, but code comments would help for sure. i'll try and push a release out with at least that changed soon.
(also happy to answer any specific questions!)
Andrew Cherry
@kolektiv
Mar 17 2016 09:25
what kind of thing are you considering using hekate for?
HellSt0rm
@HellSt0rm
Mar 17 2016 11:15

Hi, @kolektiv :smile: it is for a CodeInGame challenge called Skynet : The Virus. I am using these challenges to learn myself F# and functional programming.

Because of the game I found out I wanted to solve that particular task with graphs, after trying to do graphs with F# I found out that all code for graphs are written is based on imperative thinking. It does not look or feel right and the code is not elegant. This led me to the same paper on inductive graph theory that you based this library on and also the FGL library for Haskell.

I have also stumbled upon the libraries Chiron and Aether also (Job well done from you guys).

Back to the hekate library:

Do I need to define my own types based on the types from the Hekate library or can I take the input from the game and build up the Graph by giving relevant Node and Edge data?
The plan is to first build up the graph,

then do Breadth First Search, send output to the game and then modify the Graph end get the next input for next search iteration.
/end/and/
Andrew Cherry
@kolektiv
Mar 17 2016 12:22
yeah that seems like a reasonable plan to me :) i think you should just be able to use the graphs as is, and give the relevant edge and node types parameterised.
HellSt0rm
@HellSt0rm
Mar 17 2016 12:28
Thanks for the nudge in the right direction :+1:
Andrew Cherry
@kolektiv
Mar 17 2016 13:37
no problem at all! and good luck learning functional programming, it's very much worthwhile - i hope you enjoy the process!