2020-10-29
#define INFINITY 10000
#include
#include
#include <stdlib.h>
using namespace std;
enum graphType{undigraph, digraph, undinetwork, dinetwork};
template
struct EdgeType
{
T head, tail;
int cost;
};
template
class MGraph
{
int vexnum, edgenum; //顶点数
原创
2020-10-29 16:17:57 ·
153 阅读 ·
1 评论