I need to be able to generate dependency diagrams programmatically. I\'d like it to be able to generate a bunch of boxes with labels and connectors linking them, and ideally
I have similar request as yours. Here's one open source solution for drawing diagrams. It's from Microsoft and samples written in C#.
https://github.com/Microsoft/automatic-graph-layout