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

📄 fuzzygraph.h

📁 基于模糊费用最小生成树的算法 的源代码 prim算法 模糊数综合排序
💻 H
字号:
#ifndef FUZZYGRAPH_H
#define FUZZYGRAPH_H

#include <stdlib.h>
#include <math.h>

#include <iostream>
#include <string>
#include <vector>
using namespace std;

struct FuzzyEdge
{
	int distance;
	float membership;
	int from;
	int to;

	FuzzyEdge( int dist, float memb, int from, int to )
	{ 
		distance = dist; membership = memb; 
		this->from = from; this->to = to;
	}

};

class FuzzyGraph
{
public:
	FuzzyGraph( int Num, string DistFile );
	void Display( ); 
	void _Prim_Lee_Li( float beta );
	void _Kruskal_Evolution( ); 

public:
	vector<FuzzyEdge> CurrentEdges;

private:
	int Num;
	vector< vector<FuzzyEdge> > Edges;
};

#endif

⌨️ 快捷键说明

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