Edge Weights

Nov 5, 2010 at 4:23 AM

Hi there,

Thanks for posting this great graph drawing package!! I'd like to add a weight to each edge, and then add a slider so that when I move the slider I filter out edges with lower weights. The slider would set the cutoff. What is the easiest way to:

1. Add weights to the parser for the edges so it's supported in the file format
2. Modify the rendering to only draw edges that have a weight above the specified one.



Nov 9, 2010 at 6:59 AM


1. There is already property DrawingGraph.Edge.Weight but currently you can specify it's value only from your code, not from file format. In future releases it will be supported via file format (parser sould be modified).

2.1 If you want only to hide some edges maybe visual states and triggers from Blend SDK will help you.

2.2 If you want relayout graph while moving slider you should remove redundant edges from graph and execute layout engine. But it is very expensive beacause algorythms are not optimized yet.

Nov 9, 2010 at 7:26 AM
Edited Nov 9, 2010 at 7:27 AM

Support for Weight in file format implemented in Change Set 57281