2013-06-26 32 views
0

我有一些節點(點數)在1到20之間,並且這些節點具有相互連接的權重(推銷員問題中的距離)。我如何用比例權重向他們展示在Windows應用程序中?顯示一些節點的權重

感謝

編輯1) 圖表我想告訴類似於此圖:

enter image description here enter image description here

+0

第一,你說你要告訴他們在Windows應用程序,然後你問你要告訴他們在ASP.Net !!!!!! –

+0

我的意思是如果有一種方法可以在ASP.Net中向我展示他們 – Arian

回答

0

對於這個問題,我在C#中創建了一個Graph/Node/Connection類。

使用這個例子: enter image description here

這表明你對路線的所有信息。例如從B到C:

Node B length connection 0  total lenght 0 
Node D length connection 6  total lenght 6 
Node F length connection 4  total lenght 10 
Node C length connection 8  total lenght 18 

更多的例子和完整的源代碼在這個帖子: Create your own navigation system (with a Graph, Node and Connection class)