SNAP Library 2.4, User Reference  2015-05-11 19:40:56
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.

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

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.

int TD3Graph::m_numOfGraphs = 13
static

Definition at line 53 of file graphcounter.h.


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