baxy77bax has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

Does anyone know about any library or a code example to generate in terminal a lattice like this one young lattice ?? let the input be a two column table such as:

UPDATED version with the entire graph :

3,3,3 3,3,2 3,3,2 3,3,1 3,3,2 3,2,2 3,3,1 3,2,1 3,3,1 3,3 3,2,2 3,2,1 3,2,2 2,2,2 2,2,2 2,2,1 3,2,1 2,2,1 3,2,1 3,2 3,3 3,2 3,2 2,2 3,2 3,1 2,2,1 2,2 2,2,1 2,1,1 2,2 2,1 3,1 2,1 3,1 3 2,1,1 1,1,1 2,1,1 2,1 1,1,1 1,1 2,1 1,1 2,1 2 3 2 2 1 1,1 1

Replies are listed 'Best First'.
Re: ASCII lattice generator
by Anonymous Monk on Sep 26, 2016 at 09:00 UTC
      Thank you for the link. But if I'm not mistaken these are trees anf for trees there are simple additive functions that are utilized to get nicely formatted spaces between edges. Lattices are a level harder because of the edges that converge and this convergence can happen on different levels thus complicating simple additive forms such as trees. If I missed something in the link you provided I apologize.
Re: ASCII lattice generator
by BrowserUk (Patriarch) on Sep 26, 2016 at 10:48 UTC

    It would helpful if you could update your post to give the complete dataset for the linked image. I tried to extract the rest, but either I'm misreading the diagram labels or there is an anamoly?


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re: ASCII lattice generator
by baxy77bax (Deacon) on Sep 27, 2016 at 09:07 UTC
    Ok, after a day of searching and reading about it, it appears this cannot be done unless the problem is restricted to its 2d version. Which kind of makes sense, cli is strictly 2d :) so the challenge is open to a fast programmer. As soon as I have something I'll post it here

    cheers