35 TTimeNet(
const int& Nodes,
const int& Edges) :
TNet(Nodes, Edges) { }
53 const int& NDiamRuns=10,
const bool& OnlyWcc=
false,
const bool& AlsoRewire=
false)
const;
55 const TSecTm& DelPreTmEdges,
const TSecTm& PostTmDiam)
const;
113 const TTmUnit& TmUnit,
const int& TakeNTmUnits,
const bool& LinkBWays)
const;
115 const int& NDiamRuns=10,
const bool& OnlyWcc=
false)
const;
117 const TSecTm& DelPreTmEdges,
const TSecTm& PostTmDiam,
const bool& LinkBWays);
119 void SaveEdgeTm(
const TStr& EdgeFNm,
const bool& RenumberNId=
false,
const bool& RelativeTm=
false)
const;
122 static PTimeNENet GetPrefAttach(
const int& Nodes,
const int& Edges,
const double& GammaIn,
const double& GammaOut);
PTimeNENet GetTimeNENet() const
Tests (at compile time) if the graph is a network with data on nodes.
void PlotEffDiam(const TStr &FNmPref, const TStr &Desc, const TTmUnit &GroupBy, const TSecTm &StartTm, const int &NDiamRuns=10, const bool &OnlyWcc=false) const
TTimeNet(const TTimeNet &TimeNet)
static PTimeNet LoadArxiv(const TStr &PaperFNm, const TStr &CiteFNm)
static PTimeNENet GetSmallNet()
TPt< TGStatVec > PGStatVec
TPt< TNodeEdgeNet< TSecTm, TSecTm > > PNet
PTimeNENet Get1stEdgeNet() const
void PlotMissingPast(const TStr &FNmPref, const TStr &Desc, const TTmUnit &GroupBy, const TSecTm &DelPreTmEdges, const TSecTm &PostTmDiam) const
Tests (at compile time) if the graph is directed.
void GetNIdByTm(TIntV &NIdV) const
void PlotMissingPast(const TStr &FNmPref, const TStr &Desc, const TTmUnit &TmUnit, const TSecTm &DelPreTmEdges, const TSecTm &PostTmDiam, const bool &LinkBWays)
void GetEIdByTm(TIntV &EIdV) const
void PlotCCfOverTm(const TStr &FNmPref, TStr Desc, const TTmUnit &TmUnit, const int &NodesBucket=-1) const
PGStatVec TimeGrowth(const TTmUnit &TimeStep, const TFSet &TakeStat, const TSecTm &StartTm=TSecTm(1)) const
void GetEdgeBuckets(const int EdgesPerBucket, TTimeNet::TTmBucketV &TmBucketV) const
void GetTmBuckets(const TTmUnit &GroupBy, TTmBucketV &TmBucketV) const
static PTimeNet LoadPatents(const TStr &PatentFNm, const TStr &CiteFNm)
TVec< TTmBucket > TTmBucketV
PTimeNENet GetGraphUpToTm(const TSecTm &MaxEdgeTm) const
Node Edge Network (directed multigraph, TNEGraph with data on nodes and edges).
virtual void Save(TSOut &SOut) const
Saves the network to a (binary) stream SOut.
TSsFmt
Spread-Sheet Separator Format.
static PTimeNENet New(const int &Nodes, const int &Edges)
void GetEdgeTmBuckets(const TTmUnit &GroupBy, TTimeNet::TTmBucketV &TmBucketV) const
static PTimeNENet LoadEdgeTm(const TStr &EdgeFNm, const int &SrcFld=0, const int &DstFld=1, const int &TimeFld=2, const TSsFmt &Separator=ssfTabSep)
void SaveEdgeTm(const TStr &EdgeFNm, const bool &RenumberNId=false, const bool &RelativeTm=false) const
Graph Statistics Sequence.
void PlotEffDiam(const TStr &FNmPref, const TStr &Desc, const TTmUnit &GroupBy, const TSecTm &StartTm, const int &NDiamRuns=10, const bool &OnlyWcc=false, const bool &AlsoRewire=false) const
void GetNodeBuckets(const int NodesPerBucket, TTimeNet::TTmBucketV &TmBucketV) const
static PTimeNet New(const int &Nodes, const int &Edges)
static PTimeNENet GetPrefAttach(const int &Nodes, const int &Edges, const double &GammaIn, const double &GammaOut)
virtual void Save(TSOut &SOut) const
Saves the network to a (binary) stream SOut.
Tests (at compile time) if the graph is a network with data on edges.
TTmBucket & operator=(const TTmBucket &TmBucket)
TTimeNet(const int &Nodes, const int &Edges)
void SetNodeTmToFirstEdgeTm()
Tests (at compile time) if the graph is a multigraph with multiple edges between the same nodes...
void DumpTimeStat() const
void SetRndEdgeTimes(const int &MinTmEdge=0)
PTimeNENet GetSubGraph(const TIntV &NIdV) const
void PlotMedianDegOverTm(const TStr &FNmPref, const TTmUnit &TmUnit, const int &NodesPerBucket=-1) const
static PTimeNet LoadBipartite(const TStr &InFNm)
void Save(TSOut &SOut) const
Saves the network to a (binary) stream SOut.
static PTimeNENet LoadFlickr(const TStr &NodeFNm, const TStr &EdgeFNm)
static PTimeNet Load(TSIn &SIn)
PTimeNENet GetESubGraph(const TIntV &EIdV) const
void GetNodeBuckets(const int NodesPerBucket, TTimeNet::TTmBucketV &TmBucketV) const
static PTimeNENet GetGnmRndNet(const int &Nodes, const int &Edges)
TTimeNENet & operator=(const TTimeNENet &TimeNet)
void GetNIdByTm(TIntV &NIdV) const
TNodeEdgeNet< TSecTm, TSecTm > TNet
TPt< TNodeNet< TSecTm > > PNet
int GetTriadEdges(TIntV &TriadEIdV) const
TTmBucket(const TSecTm &BucketTm)
void GetTmBuckets(const TTmUnit &GroupBy, TTimeNet::TTmBucketV &TmBucketV) const
PTimeNet GetTimeNet() const
TTimeNet & operator=(const TTimeNet &TimeNet)
void Save(TSOut &SOut) const
Saves the network to a (binary) stream SOut.
TTmBucket(const TTmBucket &TmBucket)
TTimeNENet(const int &Nodes, const int &Edges)
static PTimeNet LoadAmazon(const TStr &StlFNm)
PTimeNet GetSubGraph(const TIntV &NIdV) const
static PTimeNENet Load(TSIn &SIn)
TPt< TGrowthStat > PGrowthStat
TTimeNENet(const TTimeNENet &TimeNet)
PGStatVec TimeGrowth(const TTmUnit &TmUnit, const TFSet &TakeStat, const TSecTm &StartTm) const
Node Network (directed graph, TNGraph with data on nodes only).
TPt< TTimeNENet > PTimeNENet