摘要: 参考:算法:C语言实现 一书实现:#ifndef GRAPH#define GRAPH#include#includestruct edge{ int v; int w;};struct node{ int v; node* next;};struct graph{ int v; int e; no... 阅读全文
posted @ 2015-08-24 21:07 湛雷冲 阅读(1180) 评论(0) 推荐(0)
摘要: 参考:算法:c语言实现 一书图的邻接矩阵实现#ifndef GRAPH#define GRAPH/* 图的邻接矩阵实现*/#include#include#includestruct edge{ int v; int w;};struct graph{ int v; int e; int **adj... 阅读全文
posted @ 2015-08-24 20:11 湛雷冲 阅读(501) 评论(0) 推荐(0)