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

📄 shortestpath.h

📁 基于S3C44B0X开发的一个校园导航系统
💻 H
字号:
///////////////////////////////////////////////////////////////////////////////
// Find shortest path function                                               //
///////////////////////////////////////////////////////////////////////////////
#ifndef __SHORTESTPATH_H__
#define __SHORTESTPATH_H__


#include <stdio.h>
#include <stdlib.h>
#include <Figure.h>

#define MaxN	   20	// 图中顶点的数目的最大值
#define INFINITY 1000	//用于表示网中两个顶点之间没有边的情况

typedef struct 
{
	int Vnum;	// 图中顶点的数目
	int Arcs[MaxN][MaxN];
}Graph;

BOOL shortestPath(Graph G, int v0, int vn, int* result, int* num);


#endif

⌨️ 快捷键说明

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