📄 fuzzygraph.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 + -