1 Star 0 Fork 69

zhoujuan-ht17/图与网络优化_Qt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nsmgraph.h 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
ZzqiZQute 提交于 2018-06-25 21:36 . 20186252136
#ifndef NSMGRAPH_H
#define NSMGRAPH_H
#include <QList>
class NSMVertex;
class BaseMatrix;
class NSMGraphData;
class NSMDummyEdge;
class BaseVector;
class NSMGraph:public QObject
{
Q_OBJECT
public:
NSMGraph();
~NSMGraph();
void addVertex(NSMVertex* v);
void clearVertexs();
NSMVertex *getVertexAt(int pos) const;
void removeVertexAt(int pos);
int getCount() const;
int ctsma();
int getLastX();
int getLastY();
QList<NSMGraphData *> *getGraphData() const;
void clearFlow();
void setCost();
BaseMatrix *getBaseMatrix() const;
void clearVerticesStates();
int getDummyEdgeCnt() const;
void setDummyEdgeCnt(int value);
QList<NSMDummyEdge *> *getDummyEdge() const;
private:
QList<NSMVertex*> *vertexs;
BaseMatrix* baseMatrix;
NSMVertex* dummy;
int count;
void calcPi();
int changeBaseVector(int phase);
QList<NSMGraphData*> *graphData;
QList<NSMDummyEdge *> *dummyEdge;
int dummyEdgeCnt;
void addGraphData(int phase, BaseVector in, BaseVector out);
};
#endif // NSMGRAPH_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zhoujuan-ht17/graph_and_network_optimization_qt.git
[email protected]:zhoujuan-ht17/graph_and_network_optimization_qt.git
zhoujuan-ht17
graph_and_network_optimization_qt
图与网络优化_Qt
master

搜索帮助