RamonMeffert / elm-gossip

A user-friendly web tool for exploring dynamic gossip.
https://r3n.nl/elm-gossip/
GNU General Public License v3.0
3 stars 0 forks source link

Accept letters and numbers as input for gossip graphs #16

Open RamonMeffert opened 3 years ago

RamonMeffert commented 3 years ago

Since the number input has a list-like format1 (e.g. ([[0,1,2],[0,1,2],[0,1,2]],[[0],[1],[2]])), it is probably possible to allow more than just numbers as agent names. I might write a parser that just parses whatever as agent names. A canonical representation for this format (using numbers) would also be nice then, e.g. ([[alice, bob], [bob, carol], [[alice], [bob], [carol]])([[0, 1], [1, 2]], [[0], [1], [2]])


1 It's basically (List (List Int), List (List Int)) (or ([[Int]], [[Int]]) in Haskell style)