SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TD4Graph 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 = 199
 
static int m_graphIds []
 

Detailed Description

Definition at line 59 of file graphcounter.h.

Member Function Documentation

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

Definition at line 47 of file graphcounter.cpp.

References TGraphEnumUtils::IsEdge().

Referenced by TD34GraphCounter::operator()().

47  {
48  int id=0;
49  //Node 0
50  if(TGraphEnumUtils::IsEdge(G, sg[0], sg[1])) id+=2;
51  if(TGraphEnumUtils::IsEdge(G, sg[0], sg[2])) id+=4;
52  if(TGraphEnumUtils::IsEdge(G, sg[0], sg[3])) id+=8;
53  //Node 1
54  if(TGraphEnumUtils::IsEdge(G, sg[1], sg[0])) id+=16;
55  if(TGraphEnumUtils::IsEdge(G, sg[1], sg[2])) id+=64;
56  if(TGraphEnumUtils::IsEdge(G, sg[1], sg[3])) id+=128;
57  //Node 2
58  if(TGraphEnumUtils::IsEdge(G, sg[2], sg[0])) id+=256;
59  if(TGraphEnumUtils::IsEdge(G, sg[2], sg[1])) id+=512;
60  if(TGraphEnumUtils::IsEdge(G, sg[2], sg[3])) id+=2048;
61  //Node 3
62  if(TGraphEnumUtils::IsEdge(G, sg[3], sg[0])) id+=4096;
63  if(TGraphEnumUtils::IsEdge(G, sg[3], sg[1])) id+=8192;
64  if(TGraphEnumUtils::IsEdge(G, sg[3], sg[2])) id+=16384;
65  //
66  return id;
67 }
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 TD4Graph::m_graphIds
static
Initial value:
= {14, 28, 30, 74, 76, 78, 90, 92, 94, 204, 206, 222, 280, 282, 286,
328, 330, 332, 334, 344, 346, 348, 350, 390, 392, 394, 396, 398,
404, 406, 408, 410, 412, 414, 454, 456, 458, 460, 462, 468, 470,
472, 474, 476, 478, 856, 858, 862, 904, 906, 908, 910, 922, 924,
926, 972, 974, 990, 2184, 2186, 2190, 2202, 2204, 2206, 2252, 2254,
2270, 2458, 2462, 2506, 2510, 2524, 2526, 3038, 4370, 4374, 4382,
4418, 4420, 4422, 4424, 4426, 4428, 4430, 4434, 4436, 4438, 4440,
4442, 4444, 4446, 4546, 4548, 4550, 4556, 4558, 4562, 4564, 4566,
4572, 4574, 4678, 4682, 4686, 4692, 4694, 4698, 4700, 4702, 4740,
4742, 4748, 4750, 4758, 4764, 4766, 4812, 4814, 4830, 4946, 4950,
4952, 4954, 4958, 4994, 4998, 5002, 5004, 5006, 5010, 5012, 5014,
5016, 5018, 5020, 5022, 5058, 5062, 5064, 5066, 5068, 5070, 5074,
5076, 5078, 5080, 5082, 5084, 5086, 6342, 6348, 6350, 6356, 6358,
6364, 6366, 6550, 6552, 6554, 6558, 6598, 6602, 6604, 6606, 6614,
6616, 6618, 6620, 6622, 6854, 6858, 6862, 6870, 6874, 6876, 6878,
7126, 7128, 7130, 7134, 13142, 13146, 13148, 13150, 13260, 13262,
13278, 14678, 14686, 14790, 14798, 14810, 14812, 14814, 15258,
15262, 15310, 15326, 31710 }

Definition at line 64 of file graphcounter.h.

Referenced by TD34GraphCounter::TD34GraphCounter().

int TD4Graph::m_numOfGraphs = 199
static

Definition at line 63 of file graphcounter.h.

Referenced by TD34GraphCounter::TD34GraphCounter().


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