I've gotten a few requests about the force directed graph
post that I made several months back. Seems that this is a popular topic for people trying to find code to do this, and I've been asked several times to post the code.
First, I don't know how robust and scalable this control is, as I was only writing it to learn some WPF control templating. Also, I modeled the engine off of some code in another open source project that is GPL. I say modeled as I literally wrote my own off of that code, but because of that it is somewhat similar, so I wonder about distributing my code before I do some checks into licensing. Until I figure that out, you can get the code that I started with over at the
Netron site and do similarly to what I did. Note that the code in that project supports a lot more functionality, is highly intertwined with WinForms code (not WPF), and that is where I spent most of the time converting things into an engine that only does force directed layout, is seperate from the UI, and of course with a WPF interface.
And, as I mention in this
post, I've actually moved on with creating what should be a much more robust force directed graph control using the C++ boost graph library wrapped with C#. That code is in a really early stage and not worth posting at this point, but given the interest I may very well try to get it better and posted for everyone. That is free to distribute if that time ever comes. Unfortunately, it does not work quite as well as the former project at this point as I am still learning how to do the C++ to C# integration.
ad72f216-9b79-4ef8-a11c-561c54259197|0|.0