Questions tagged [graph-sharp]

GraphSharp - .NET, WPF Graph Layout framework

Graph# is a graph layout framework. It contains some layout algorithms and a GraphLayout control for WPF applications.

See http://graphsharp.codeplex.com/

25 questions
32
votes
1 answer

Graph in WPF using graph# isn't drawn as a chain

I'm using WPF with graph# library and I'm trying to to draw a graph as a linear chain, so I defined some vertices and the edges joining them as new Edge(vertices[i], vertices[i+1]) But the problem is that the resulting graph isn't drawn as…
Luna28
  • 527
  • 3
  • 15
8
votes
2 answers

Method or operation not implemented error on Binding

I'm currently developing a Visual Studio plugin (VSPackage) which finally should be able to visualize call relations. In order to represent them I want to use the Graph# library which manages the graph (avoiding overlapping edges…
7
votes
1 answer

Adding custom style to edge in Graphsharp

I'm using the GraphSharp framework which has very little documentation (http://graphsharp.codeplex.com/), and I'm trying to change the colors for certain edges. Effectively something like this (to make this edge red). g.AddEdge(new…
Sam
  • 669
  • 1
  • 13
  • 26
5
votes
1 answer

Graph Layout using Graph#

Here is my code for the window: public partial class MainWindow { private MainWindowViewModel _mainWindowViewModel; public MainWindow() { InitializeComponent(); _mainWindowViewModel = new MainWindowViewModel(); …
Kirill Dubovikov
  • 1,457
  • 2
  • 21
  • 41
4
votes
1 answer

WPF - Adding a label on edges in Graph#

I couldn't work with WPF so I used elementHost in Winform. In my project (graph draw with Graph#) I can draw vertices and edges but I couldn't put label on edges. Code : string[] vertices = new string[] { "A", "B", "C" }; var g = new…
tvahid
  • 210
  • 1
  • 9
3
votes
2 answers

GraphSharp Tree Layout LeftToRight

I try to create a Tree with GraphSharp from CodePlex. I looked at the Sample Application and try to "re engineer" the example. The problem is, if I try to set the LayoutAlgorithmType = "Tree" programmatically I get a TargetInvocationException...…
3
votes
4 answers

XamlParseException when using Graph# libraries

I'm trying to use the Graph# libraries in my VSPackage project, but unfortunately there are some obstacles to conquer. Here is what I did: I copied all the following DLL's to a folder /Libraries in the project…
2
votes
1 answer

Building Non-Directed Graphs using Graphsharp framework

Is it possible to generate non-directed graph using the Graphsharp framework in WPF? I could only manage to generate directed graph, I tried searching it on my own, but didn't figure it out if there is an appropriate class built-in to create such…
Korag
  • 23
  • 5
2
votes
0 answers

Changing the nodes layout from a graph and mouse event using GraphSharp

I'm using GraphSharp to construct some graphs. The code I'm using constructs the vertex with its names (see this image: http://postimg.org/image/tn6km08an/). What I want to do is: "hide" the nodes' name and change the vertex layout to circles,…
anderici
  • 77
  • 1
  • 11
2
votes
0 answers

Adding an algorithm layout while using the graphsharp liabrary

I'm a student and working on a project of visualizing a graph. Me and my partner decided to work with the graphsharp liabray, but we what a specific layout algorithm that shows the graph as an adjacency list. All the layout algorithms in the…
AlexG
  • 31
  • 2
1
vote
1 answer

Is it possible with WPF to load a part of the UI in the background?

I want to show a network in my WPF-Application. But always the window freeze on rendering. I use the Graphsharp-library for visualization. The network is assembled in an extra thread. So it will probably be the renders. So, is it possible with WPF…
Baum
  • 95
  • 10
1
vote
1 answer

"cannot resolve symbol" in ResourcesDictionary XAML (to be merged)

I have one file GraphView.XAML. I have split the Resources section into two ResourceDictionary files (Vertices.xaml and Edges.xaml) which I merge as follows: GraphView.XAML
mitxael
  • 52
  • 7
1
vote
0 answers

How to label edge in GraphSharp wpf

I'm beginner in WPF. I draw some graphs with Graph#. Now I don't know how to get labeled edges. I need help! I tried this solution https://graphsharp.codeplex.com/discussions/72119, but it didn't work. I use Visual Studio Community. Thanks for your…
1
vote
2 answers

Using GraphSharp graph layout WPF library to plot a graph and edit vertex label

I'm a college student and this is a homework my algorithm analysis professor passed to our class. I'm not using homework tag since it's to be deprecated, but it is homework basically. Any help is greatly appreciated. We're to make a program using…
leobelones
  • 578
  • 1
  • 8
  • 24
0
votes
1 answer

How to Change the look of GraphSharp Vertices in XAML

I am using GraphSharp in my project where I need to change the look of the vertices. I tried to create a custom vertex class which had only one property named Name. I then created a ViewModel class where I created the vertices and edges. To render…
Pankaj Agarwal
  • 117
  • 1
  • 16
1
2