GLEE and QuickGraph

Topics: glee, graph
Jan 5, 2009 at 4:42 PM
Hi I can't understad how hi can draw a graph.
I'm using C# 2.0, Glee and Quickgraph

I can't understand How to convert the type AdjacencyGraph to GleeDefaultGraphPopulator

 AdjacencyGraph<int, TaggedEdge<int, string>> g = new AdjacencyGraph<int, TaggedEdge<int, string>>();

            int v1 = 1;
            int v2 = 2;

            g.AddVertex(v1);
            g.AddVertex(v2);

            TaggedEdge<int, string> e1 = new TaggedEdge<int, string>(v1, v2, "hello");

            g.AddEdge(e1);

GleeDefaultGraphPopulator<int, NamedEdge<string>> populator = (how can i put here?)

The constructor GleeGraphUtility.Create doesn't exist in the assembly using QuickGraph.Glee;

I use these assemblies:

using Microsoft.Glee;
using Microsoft.Glee.Drawing;
using Microsoft.Glee.GraphViewerGdi;
using System.Drawing;
using Microsoft;
using QuickGraph;
using QuickGraph.Glee;

Can someone put here an example? or help me?





Coordinator
Jan 5, 2009 at 8:51 PM
Use the helper methods from GleeGraphExtensions:

    GleeDefaultGraphPopulator<int, NamedEdge<string>> populator = GleeGraphExtensions.CreateGleePopulator(g);

There are other overloads that let you customize the looks of the vertex/edges.
Jul 21, 2011 at 1:54 AM

i have problem  GleeGraphExtensions doesn't exist. Can someone help me?

Sep 21, 2012 at 3:17 AM

I have the same problem. Could you solved it? Thanks.

Mar 26, 2013 at 10:40 PM
bump
Mar 16, 2014 at 9:38 PM
GleeGraphExtensions doesn't exist.
Can someone help me?
Jul 7, 2014 at 11:06 PM
Yes there is no support of GLEE in this version and previous tutorials is not up to date.