A Simple Graph Package Providing an Iterator
暂无分享,去创建一个
Graphs, of one form or another, are an important data structure throughout most of computer science. This example displays an implementation of a simple package providing an abstraction of directed graphs. The specification includes some type definitions, culminating in the Ob j record type, that serves to define the structure of directed graphs. The user is responsible for allocation, initialization and manipulation of the nodes that form a graph.