SNAP Library , Developer Reference
2013-01-07 14:03:36
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <graphcounter.h>
Public Member Functions | |
TDGHashGraphCounter () | |
void | operator() (const PNGraph &G, const TIntV &sg) |
TGHash< TUInt64 > & | Graphs () |
Private Attributes | |
TGHash< TUInt64 > | m_graphs |
Definition at line 37 of file graphcounter.h.
TDGHashGraphCounter::TDGHashGraphCounter | ( | ) | [inline] |
Definition at line 39 of file graphcounter.h.
: m_graphs(false) {}
TGHash<TUInt64>& TDGHashGraphCounter::Graphs | ( | ) | [inline] |
Definition at line 136 of file graphcounter.cpp.
References TGHash< TDat >::AddDat(), TGHash< TDat >::GetDat(), TGraphEnumUtils::GetIndGraph(), TGHash< TDat >::IsKey(), m_graphs, and TNGraph::New().
{ PNGraph indG = TNGraph::New(); TGraphEnumUtils::GetIndGraph(G, sg, indG); // if(m_graphs.IsKey(indG)) m_graphs.GetDat(indG)++; else m_graphs.AddDat(indG, 1); }
TGHash<TUInt64> TDGHashGraphCounter::m_graphs [private] |
Definition at line 44 of file graphcounter.h.
Referenced by Graphs(), and operator()().