fuzzygraph.h
来自「基于模糊费用最小生成树的算法 的源代码 prim算法 模糊数综合排序」· C头文件 代码 · 共 43 行
H
43 行
#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 + =
减小字号Ctrl + -
显示快捷键?