|
SNAP Library 2.1, User Reference
2013-09-25 10:47:25
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#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} |
Definition at line 49 of file graphcounter.h.
| int TD3Graph::getId | ( | const PNGraph & | G, |
| const TIntV & | sg | ||
| ) | [inline, static] |
Definition at line 11 of file graphcounter.cpp.
{
int id=0;
//Node 0
if(TGraphEnumUtils::IsEdge(G, sg[0], sg[1])) id+=2;
if(TGraphEnumUtils::IsEdge(G, sg[0], sg[2])) id+=4;
//Node 1
if(TGraphEnumUtils::IsEdge(G, sg[1], sg[0])) id+=8;
if(TGraphEnumUtils::IsEdge(G, sg[1], sg[2])) id+=32;
//Node 2
if(TGraphEnumUtils::IsEdge(G, sg[2], sg[0])) id+=64;
if(TGraphEnumUtils::IsEdge(G, sg[2], sg[1])) id+=128;
//
return id;
}
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.