trellis diagram

HI
now i’m working on some coding program ( viterbi algoritm ) in C programming, and i want to visual decoding path from my viterbi program in trellis graphic form !!!

can you help me plz to draw or reveal principple of trellis graphic in openGL programming

thanks