GitHub - TestProgger/huffman_visualization: Visualization of the Huffman tree

Skip to content

Navigation Menu

Sign in

Appearance settings

Huffman Tree Visualization

Prepare

Install graphviz on your OS

Install python wrap by graphviz

Usage

Example

    python main.py -N 128 -p0 0.1 -p1 0.9 -fn <filename> 
    -N              Maximum number is a combination
    -p0             Probability of occurrence of zero
    -p1             Probability of occurrence of one
    -fn             Name of the output file
    --engine        Which engine will be used to render the tree    
    --file-formats  Output file formats
    --zip           Archive output files

    --no-csv        Don't generate csv  
    --no-tree       Don't generate a tree image