help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Some fun with color.mod


From: Andrew Makhorin
Subject: Re: [Help-glpk] Some fun with color.mod
Date: Sun, 21 Mar 2010 18:45:54 +0300

> MathProg model for Graph Coloring Problem is available in examples
> directory of GLPK distribution. I wanted to visualize the solution, by
> coloring nodes of the graph.

> So I modified the color.mod, to output/spit a dot file and fed to
> Graphviz dot program to produce PS file. Attached is modified
> color.mod and output PS file.

> The number of colors are hard coded, attached model  #39;color.mod
> #39; could be improved to generated colors dynamically based on
> solution to graph coloring problem.

Nice job :)

Does Graphviz determine the graph lay-out automatically? Or one needs
to provide an additional information for graph drawing?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]