SNAP Library 4.0, Developer Reference  2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TD3Graph Class Reference

#include <graphcounter.h>

Static Public Member Functions

static int getId (const PNGraph &G, const TIntV &sg)
 

Static Public Attributes

static int m_numOfGraphs = 13
 
static int m_graphIds [] = {6,12,14,36,38,46,78,102,140,164,166,174,238}
 

Detailed Description

Definition at line 49 of file graphcounter.h.

Member Function Documentation

int TD3Graph::getId ( const PNGraph G,
const TIntV sg 
)
inlinestatic

Definition at line 11 of file graphcounter.cpp.

References TGraphEnumUtils::IsEdge().

Referenced by TD34GraphCounter::operator()().

11  {
12  int id=0;
13  //Node 0
14  if(TGraphEnumUtils::IsEdge(G, sg[0], sg[1])) id+=2;
15  if(TGraphEnumUtils::IsEdge(G, sg[0], sg[2])) id+=4;
16  //Node 1
17  if(TGraphEnumUtils::IsEdge(G, sg[1], sg[0])) id+=8;
18  if(TGraphEnumUtils::IsEdge(G, sg[1], sg[2])) id+=32;
19  //Node 2
20  if(TGraphEnumUtils::IsEdge(G, sg[2], sg[0])) id+=64;
21  if(TGraphEnumUtils::IsEdge(G, sg[2], sg[1])) id+=128;
22  //
23  return id;
24 }
static bool IsEdge(const PNGraph &G, int SrcNId, int DstNId)
Definition: graphcounter.h:84

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

int TD3Graph::m_graphIds = {6,12,14,36,38,46,78,102,140,164,166,174,238}
static

Definition at line 54 of file graphcounter.h.

Referenced by TD34GraphCounter::TD34GraphCounter().

int TD3Graph::m_numOfGraphs = 13
static

Definition at line 53 of file graphcounter.h.

Referenced by TD34GraphCounter::TD34GraphCounter().


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