SNAP Library , Developer Reference  2013-01-07 14:03:36
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>

Collaboration diagram for TDGHashGraphCounter:

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.

References m_graphs.

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

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);
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 44 of file graphcounter.h.

Referenced by Graphs(), and operator()().


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