在编程vb.net中创建并显示节点和边缘? [英] create and display node and edge in programing vb.net ?

查看:92
本文介绍了在编程vb.net中创建并显示节点和边缘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

感谢您的关注.不幸的是,我的英语不好.我对图形节点和边的概念是Rami,我知道,但是就面向对象编程而言,我不知道如何实现?

例如,设置为18的数字可以被{1 .2 .3 .9 .6整除. 18}.下载边缘是质数. {2. 3}.所以我们有图.



我希望这能说服您.

Thank you for your attention. Unfortunately, my English language is bad. My concept of graph nodes and edges is Rami and I know, but in terms of object-oriented programming I do not know how to implement?

For example, number 18, which sets it is divisible by {1 .2 .3 .9 .6. 18}. Download edges are primes. {2. 3}. So we have graph it.



I hope that convinced you.

推荐答案

在阅读文献并学习正确的英语术语之前,您不应该问类似的问题.我之所以了解它,是因为我会另一种语言.觉得自己很幸运.

您对与图论有关的问题有什么疑问,请参见 http://en.wikipedia.org/wiki /Graph_theory [ ^ ].您特别感兴趣的是加权图,请参见 http://en.wikipedia.org /wiki/Weighted_graph [ ^ ].

您所谓的边缘"是图形的弧";您称为节点"的是图形的顶点".

我强烈建议您在不关心图形渲染的地方使用WPF,而只需将2D对象放到Canvas和System.Windows.Controls.Canvas实例上即可.使用类System.Windows.Controls.Viewbox已经可以解决缩放问题,您可以在其中放置任何内容.

使用System.Windows.Forms也是可能的,但更麻烦.关于在Forms上渲染和处理图形有数百个问题,因为有很多人做得不好.仅当您说服我出于某些严重原因不接受WPF时,我才能讨论这种解决方案.

现在您要做的工作很认真.

祝你好运,
—SA
You should not ask questions like that before you look at the literature and learn correct English terminology. I understood it only because I know another language. Consider yourself lucky.

What are you asking about it related to Graph Theory, see http://en.wikipedia.org/wiki/Graph_theory[^]. What you''re particular interested in is the Weighted Graph, see http://en.wikipedia.org/wiki/Weighted_graph[^].

What you call "edge" is the graph''s "arc"; what you call the "node" is the graph''s "vertex".

I strongly recommend using WPF where you do not care about rendering of graphics but simply put 2D objects onto Canvas, and instance of System.Windows.Controls.Canvas. The problem of scaling is already solved by using the class System.Windows.Controls.Viewbox where you can put any contents.

Using System.Windows.Forms is also quite possible but way more tedious. There are hundreds questions about rendering and manipulating graphics on Forms because so many people don''t do it right. I can discuss such solution only if you convince me that WPF is not acceptable by some serious reasons.

Now you have pretty serious work to do.

Good luck,
—SA


这篇关于在编程vb.net中创建并显示节点和边缘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆