Does QuickGraph do this

Topics: graph
Feb 1, 2010 at 4:32 PM

I have the following graph instructions that i currently use dot.exe to create a jpg from.  I am shelling dot which requires graphviz installed.  What i am looking for is an integrated solution.  I would like to be able to call an API and have it generate an image.  Ideally without ever having to create a file.  Is this something that QuickGraph can do?

 

                    System.Diagnostics.ProcessStartInfo pi = new System.Diagnostics.ProcessStartInfo("dot", " -Tjpeg -o file.jpg file.txt");

System.Diagnostics.ProcessStartInfo pi = new System.Diagnostics.ProcessStartInfo("dot", " -Tjpeg -o file.jpg file.txt");

digraph g {68 -> 67;68 -> 65;68 [label="AND\n68"];67 -> 66;67 -> 64;67 [label="AND\n67"];65 -> 79;65 -> 80;65 [label="\n65"];79 [label="tblTripsActual.Override\n79"];80 [label="OR:\n80"];66 -> 62;66 -> 63;66 [label="AND\n66"];64 -> 77;64 -> 78;64 [label="=\n64"];77 [label="tblTripsActual.FundingSourceID\n77"];78 [label="FS:4\n78"];62 -> 73;62 -> 74;62 [label="=\n62"];73 [label="tblRunActual.Verified\n73"];74 [label="1\n74"];63 -> 75;63 -> 76;63 [label="=\n63"];75 [label="tblTripsActual.RunActualID\n75"];76 [label="tblRunActual.ID\n76"];}

 

 

Coordinator
Feb 14, 2010 at 10:36 PM

Try download the 'Automatic Graph Layout' engine on MSDN. It does exactly what you are looking for. QuickGraph has helper methods to convert graphs into AGL graphs.

Mar 6, 2010 at 9:09 PM

it costs.  is there another alternative?  I can use what i have.  i am writing a non-essential utility; i can't justify the dollars.