⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 稀疏矩阵、链表、图、队列、二叉树、多叉树、排序、遗传算法等的实现
💻
字号:
Chapter 16 - Graphs

The files in this directory make up a simple but versatile library for
manipulating graphs. Algorithms are provided for topological sorting,
finding minimum spanning trees and finding shortest paths. Both adjacency
lists and adjacency matrices are supported graph data structures.




The following header files provide the 'front end' of the library:


graphs.h     The top level header file for the graph library. This provides
             top level prototypes for both adjacency lists and matrices.

topsort.h    Header file defining the topological sort function in topsort.c

shpath.h     Header file defining various structures and functions used to
             determine shortest paths.

mstree.h     Header file defining functions to determine the minimum spanning
             tree (or forest) of undirected graphs.

dfsfuncs.h   Header file defining an example depth-first search function to
             determine if two vertices are connected in less than E
             iterations.




The following files are the library proper:


graphs.c     The workings behind most of the library. This code provides a
             common interface for both adjacency matrices and adjacency lists.
             The top level functions call the correct primitive function as
             defined in adjlist.c or adjmatrix depending on the type of graph.

graphprv.h   Internally used header which defines the Graph_Spec structure
             which is used to hold the pointers to the functions for each
             primitive operation of each graph type.

adjlist.c    An implementation of the primitives required for the library and
adjlist.h    an instance of a Graph_Spec structure for adjacency lists.

adjmatrix.c  An implementation of the primitives required for the library and
adjmatrix.h  an instance of a Graph_Spec structure for adjacency matrices.


topsort.c    Implementation of some useful algorithms.
shpath.c
mstree.c
dfsfuncs.c

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -