-
Notifications
You must be signed in to change notification settings - Fork 4
/
NetworkGenerator.h
executable file
·39 lines (26 loc) · 1012 Bytes
/
NetworkGenerator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* NetworkGenerator.h
*
* Created on: 14 lug 2016
* Author: giovanni
*/
#ifndef NETWORKGENERATOR_H_
#define NETWORKGENERATOR_H_
#include <string>
#include "LightningNetwork.h"
class NetworkGenerator {
public:
NetworkGenerator();
virtual ~NetworkGenerator();
/*static LightningNetwork * generate(int numNodes, double connDegree, double minFund, double maxFund,
double sendingFee, double receivingFee, double positiveSlope, double negativeSlope, FeeType policy, int seed, int averageNumSlopes);
*/
static LightningNetwork * generateBase(int numNodes, double connectionProbability,
double minFund, double maxFund, int seed);
static LightningNetwork * generateBaseFromFile(std::string filename);
static LightningNetwork * generateOptimizedFee(LightningNetwork * baseNet,
long baseSendingFee_inMilliSatoshi,
double shigh, double slow, int seed);
bool isConnected(LightningNetwork & net);
};
#endif /* NETWORKGENERATOR_H_ */