?? maxflow.h
字號:
#ifndef __MAXFLOW_H__
#define __MAXFLOW_H__
typedef long flowtype;
struct Edge
{
long from;
long to;
long cap;
};
#define BLOCK_SIZE 512
struct EdgeList
{
struct Edge edge[BLOCK_SIZE];
struct EdgeList *next;
int num;
};
struct Graph
{
long node_min, node_max;
long m;
long source;
long sink;
struct EdgeList *first;
struct EdgeList *current;
};
struct Graph * init_graph(long source, long sink);
void add_edge(struct Graph *graph, long from, long to, long cap);
flowtype maxflow(struct Graph *graph, int *cut);
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -