up-to-date documentation with .NET 3.5

Topics: algorithm, graph
Jun 12, 2009 at 9:00 PM


i have tried QuickGraph and it seem pretty cool to use with graph and algorith. But i had some trouble running example provide with documentation that seem made for .NET 2.0. I had to make some modifications to make the code working. Since i am new to Quickgraph and C#, i d like to know if there is documentation for .NET 3.5. Or should i be able to run the 2.0 example in configuring my project differently?

thz in advance

Jun 13, 2009 at 12:59 AM

Could you be more specific with wich documentation is out of date? 

C# 3.0 is backward compatible with C# 2.0. At the runtime level, .Net 3.5 does not exist, it is still the same runtime .Net 2.0. Only the C# compiler added new features.

Jun 16, 2009 at 2:49 PM

Hi, thz a lot for replying so fast, here is an example of what i can't run with the errorcode that i receive, It may be a program setup too since i have no background in C# and with QuickGraph:

            // example
            // from section:
            // http://quickgraph.codeplex.com/Wiki/View.aspx?title=Shortest%20Path&referringTitle=Home

            IVertexListGraph<int, Edge<int>> cities; // a graph of cities
            QuickGraph.Func<Edge<int>, double> cityDistances; // a delegate that gives the distance between cities

            int sourceCity; // starting city
            int targetCity; // ending city

            // vis can create all the shortest path in the graph
            // and returns a delegate vertex -> path
            var path2 = cities.ShortestPathShortestPath(cityDistances, sourceCity);
            foreach (var e in path2(targetCity))


            //Error 1 'QuickGraph.IVertexListGraph<int,QuickGraph.Edge<int>>'
            //does not contain a definition for 'ShortestPathShortestPath' and
            //no extension method 'ShortestPathShortestPath' accepting a first
            //argument of type 'QuickGraph.IVertexListGraph<int,QuickGraph.Edge<int>>'
            //could be found (are you missing a using directive or an assembly reference?) 
            //[...]\My Documents\Visual Studio 2008\Projects\Service\QuickGraphTest\Program.cs
            //250 32 QuickGraphTest

here is a listing of the namespace i am using:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;using QuickGraph;
using QuickGraph.Algorithms;
using QuickGraph.Algorithms.ShortestPath;
using QuickGraph.Algorithms.Observers;
using QuickGraph.Graphviz.Dot;
using QuickGraph.Graphviz;
using QuickGraph.Algorithms.MinimumSpanningTree;

with C# 2008, .NET 3.5 SP1

here is a list of the reference that i added:

all from the 3.5 folder

have a nice day

Jun 17, 2009 at 10:53 AM

I've updated that sample. Thanks for pointing out.