QuickGraph is an open source generic graph library .NET. It handles both directed and undirected graphs and has algorithms for traversing and searching the graphs.
Questions tagged [quickgraph]
74 questions
3
votes
1 answer
Render a gif or png when using QuickGraph (instead of a .dot file)
I m trying out quickgraph and when I remder like this:
var graphviz = new GraphvizAlgorithm>(g);
graphviz.ImageType = GraphvizImageType.Gif;
var output = graphviz.Generate(new FileDotEngine(), "graph");
of course i get a…

roundcrisis
- 17,276
- 14
- 60
- 92
3
votes
2 answers
Graphs and ASP.Net MVC
I have a graph which I would like to represent using an image on a website. The problem is generating this image dynamically based on the current state of the graph.
I'm using ASP.Net MVC 3 with C#.
I've been thinking about generating the image on…

DkM
- 800
- 1
- 7
- 22
3
votes
3 answers
How to apply custom BidirectionalGraph from QuickGraph to GraphLayout from Graph#?
Whats wrong?
using QuickGraph;
using GraphSharp;
public class State
{
public string Name { get; set; }
public override string ToString()
{
return Name;
}
…

Dmitry
- 31
- 2
3
votes
2 answers
How to render my graph using QuickGraph C#
I'm new to QuickGraph. I followed the examples on the documentation page to add vertices & edges to my graph.
Now, I want to display my graph on a windows form. I'm using Graphviz for that purpose, which generates a .DOT file as output. I'm…

Ruchir Sharma
- 819
- 1
- 10
- 18
3
votes
1 answer
Difference Between QuickGraph from CodePlex and CodeProject
I'm wanting to use QuickGraph to draw some graphs in C# using GraphViz. I've had a look at the libraries available from CodePlex and CodeProject. They appear to be quite different.
What are the major differences between the two?

macleojw
- 4,113
- 10
- 43
- 63
3
votes
1 answer
QuickGraph : Cycle Detection
I am currelty working on a application where i need to detect a cycle from a undirectedgraph.I got a implementation in c# for the same but it is very slow.I found Quickgraph Sdk but not able to find any implementation or sample or documentation for…

Tjcool
- 391
- 1
- 3
- 14
3
votes
2 answers
Minimum Spanning Tree quick graph
I want to find the minimum spanning tree of the following graph using quick graph. I Went through the manual provided but I don't really understand how to do it.
Here is my code:
static void Main(string[] args)
{
var g = new…

cgadjoro
- 127
- 1
- 7
2
votes
1 answer
QuickGraph, how to use extension method StronglyConnectedComponents
As part of my first experiments with C# (on Mono 2.6.7) , I am trying to use the StronglyConnectedComponents method from QuickGraph. Here is my code:
using System;
using QuickGraph;
using QuickGraph.Data;
using System.Collections.Generic;
using…

Jan-Willem
- 187
- 1
- 12
2
votes
1 answer
Partition graph by connection degree
I would to ask if there is already algorithms for graphs that partition graphs into subgraphs like the screenshot attached:
Graph has edges
A-B,B-C,C-D, D-E, C-F, F-G
I need to partition it to 3 parts since vertex C has degree of…

PetrasVestartasEPFL
- 556
- 2
- 12
2
votes
1 answer
C# with QuickGraph package from NuGet
I have a problem while trying to use AdjacencyGraph class of QuickGraph package. Allow me to show my code as first and then describe the problem:
using System.Collections.Generic;
using QuickGraph;
public class StrategicMap
{
private…

ŁukaszP.
- 21
- 1
2
votes
0 answers
Unable to Serialise Graph with base class and derived class properties using GraphMLExtensions
I have a custom implementation of Graph using Quick graph(NuGet Package). When I'm trying to Serialise this graph object using GraphMLExtensions, I'm able to Serialise only base class propeties but not both base class & derived class.
Please help me…

SatheeshKothakapu
- 21
- 1
2
votes
1 answer
How to draw a directed graph with labels on edges using quickgraph and graph# libraries?
I'm trying to draw a directed graph with labels on edges. I'm using graph# (graphsharp) and quickgraph, and I saw an explanation in the forums about how to add labels (it is not supported by the library), but cannot manage to implement myself. If…

Uri
- 25,622
- 10
- 45
- 72
2
votes
1 answer
Graphviz size/pagesize attribute seemingly ignored
How does one set the size of the output image in GraphViz via the DOT format?
I'm using QuickGraph and this technique to render a GraphViz. As in the example below, I'm trying to set the maximum size of the rendering. I've tried lots of variations…

Jason Kleban
- 20,024
- 18
- 75
- 125
2
votes
1 answer
C# Drawing a graph using QuickGraph and GraphViz
I hope I don't appear lazy, but I am really struggling to draw a graph using QuickGraph and GraphViz, since I can't appear to find much documentation online. I am quite new to C# interfaces, so am finding them quite confusing as well. Would anybody…

Lord Cat
- 401
- 4
- 13
2
votes
2 answers
QuickGraph - How can I associate an Edge with a Class? (i.e. like you can with a Vertex)
Q1 - How can I associate an Edge with a Class? (i.e. like you can with a Vertex)
In my case there are various types of edges I want to be able to model. So my real question I guess is how can I associate some level of data with Edges (e.g. edge…

Greg
- 34,042
- 79
- 253
- 454