graph.h

来自「Dijkstra s Algorithm -- Shortest path (D」· C头文件 代码 · 共 27 行

H
27
字号
// Graph.h: interface for the CGraph class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_GRAPH_H__0A20F055_21B0_4D48_A1F0_E916CFF57053__INCLUDED_)
#define AFX_GRAPH_H__0A20F055_21B0_4D48_A1F0_E916CFF57053__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "StdAfx.h"

class CGraph  
{
public:
	long GetNrNodes();
	CGraph();
	virtual ~CGraph();
	VTYPE_NODE m_nodes;	// array of nodes
	VTYPE_EDGE m_edges;	// array of edges
	VTYPE_NODE_P d;		//	array of longs that contain the shortest path at every step
	VTYPE_NODE_P pi;	//  array of longs that contain the predecessor of each node for the shortest path
};

#endif // !defined(AFX_GRAPH_H__0A20F055_21B0_4D48_A1F0_E916CFF57053__INCLUDED_)

⌨️ 快捷键说明

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