Before you discover exactly what these functions do, let's look at a DirectedGraph.
在您发现这两个函数到底完成什么功能之前,让我们来看一下DirectedGraph。
You can understand the crux of creating a DirectedGraph with the following lines of code.
您可以通过以下代码行来了解创建DirectedGraph的关键所在。
You can visualize a DirectedGraph as a 2-d graph that has a finite number of Nodes, with each Node located at some Point, and the adjacent Nodes joined (or connected) to each other by Edges.
您可以将DirectedGraph形象化为拥有有限数量的Node的一个2 - d图形,在该图形中,每个Node都位于一些Point上,相邻的Node是通过Edges连接在一起的。
应用推荐