如何创建抓图并找出我们可以通过不超过F的路径从节点A到达的所有节点. [英] How to create grapgh and find out all nodes which we can reach from node A by path not longer than F.

查看:127
本文介绍了如何创建抓图并找出我们可以通过不超过F的路径从节点A到达的所有节点.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何构建图形?请举个例子.我不知道该怎么办.如何涂漆以及应该使用哪些组件?例如,练习是:我们有五个节点,分别是A,B,C,D,E和一些值F.现在,我们应该在表单上构建并显示图,并找出可以从节点A到达的所有节点.路径不超过F.

How to build the graph? please give some example. I have no idea what i should do. How to paint it and which components i should use? For example the exercise is: We have five nodes and A, B, C, D, E, and some value F. Now we should build and show the graph on the form and find out all nodes which we can reach from node A by path not longer than F.

推荐答案

由于这显然是一项作业-您必须自己弄清楚该理论.
图形(数学) [ WPF图表设计器:第1部分 [ WPF图表设计器-第2部分 [ WPF图表设计器-第3部分 [ WPF图表设计器-第4部分 [
Since this obviouly is an assignment - you''ll have to figure out the theory yourself.
Graph (mathematics)[^] is a good starting point.

When it comes to rendering the stuff you could do worse than looking at:
WPF Diagram Designer: Part 1[^]
WPF Diagram Designer - Part 2[^]
WPF Diagram Designer - Part 3[^]
WPF Diagram Designer - Part 4[^]

You''ll learn a lot about Wpf, and maybe have a bit of fun too :)

Regards
Espen Harlinn


这篇关于如何创建抓图并找出我们可以通过不超过F的路径从节点A到达的所有节点.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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