SNAP Library 2.2, User Reference  2014-03-11 19:15:55
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TDGHashGraphCounter Class Reference

#include <graphcounter.h>

List of all members.

Public Member Functions

 TDGHashGraphCounter ()
void operator() (const PNGraph &G, const TIntV &sg)
TGHash< TUInt64 > & Graphs ()

Private Attributes

TGHash< TUInt64m_graphs

Detailed Description

Definition at line 37 of file graphcounter.h.


Constructor & Destructor Documentation

Definition at line 39 of file graphcounter.h.

: m_graphs(false) {}

Member Function Documentation

Definition at line 42 of file graphcounter.h.

{ return m_graphs; }
void TDGHashGraphCounter::operator() ( const PNGraph G,
const TIntV sg 
)

Definition at line 136 of file graphcounter.cpp.

                                                                      {
        PNGraph indG = TNGraph::New();
        TGraphEnumUtils::GetIndGraph(G, sg, indG);
        //
        if(m_graphs.IsKey(indG))
                m_graphs.GetDat(indG)++;
        else m_graphs.AddDat(indG, 1);
}

Member Data Documentation

Definition at line 44 of file graphcounter.h.


The documentation for this class was generated from the following files: