lxgraphl.h

来自「vc编写的数据结构」· C头文件 代码 · 共 36 行

H
36
字号
// lxgraphl.h: interface for the lxgraphl class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_LXGRAPHL_H__802093C7_FBD8_477F_B5A2_F43FDF8F8A9C__INCLUDED_)
#define AFX_LXGRAPHL_H__802093C7_FBD8_477F_B5A2_F43FDF8F8A9C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "lxlist.h"
#include "lxedge.h"
class lxgraphl  
{
public:
	void setmark(int v,int val);
	int getmark(int v);
	int weight(int v1,int v2);
	void deledge(int v1,int v2);
	void setedge(int v1,int v2,int wgt);
	int next(int v1,int v2);
	int first(int v);
	int e();
	int n();
	lxgraphl(int);
	~lxgraphl();

private:
	lxlist** vertex;
	int numedge;
	int numvertex;
	int* mark;
};

#endif // !defined(AFX_LXGRAPHL_H__802093C7_FBD8_477F_B5A2_F43FDF8F8A9C__INCLUDED_)

⌨️ 快捷键说明

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