#include "localmotifcluster.h"
#include "stdafx.h"
Go to the source code of this file.
|
MotifType | ParseMotifType (const TStr &motif, const bool &IsDirected) |
|
void | printMotifType (const MotifType &type) |
|
int | getCliqueSize (const MotifType &type) |
|
bool | higherDeg (PUNGraph &G, TUNGraph::TNodeI &NI1, int nodeID2) |
|
bool | higherDeg (PUNGraph &G, int nodeID1, int nodeID2) |
|
int | checkEdge (PNGraph &G, long nodeID, long nbrID) |
|
int | checkTriadMotif (PNGraph &G, long nodeID, long srcNId, long dstNId) |
|
bool | higherDeg (PNGraph &G, TNGraph::TNodeI &NI1, int nodeID2) |
|
bool | higherDeg (PNGraph &G, int nodeID1, int nodeID2) |
|
int checkEdge |
( |
PNGraph & |
G, |
|
|
long |
nodeID, |
|
|
long |
nbrID |
|
) |
| |
Definition at line 259 of file localmotifcluster.cpp.
260 if (G->IsEdge(nodeID, nbrID)) {
261 if (G->IsEdge(nbrID, nodeID)) {
int checkTriadMotif |
( |
PNGraph & |
G, |
|
|
long |
nodeID, |
|
|
long |
srcNId, |
|
|
long |
dstNId |
|
) |
| |
Definition at line 273 of file localmotifcluster.cpp.
275 if (G->IsEdge(dstNId, srcNId)) {
int checkEdge(PNGraph &G, long nodeID, long nbrID)
Definition at line 125 of file localmotifcluster.cpp.
Node iterator. Only forward iteration (operator++) is supported.
int GetOutDeg() const
Returns out-degree of the current node (returns same as value GetDeg() since the graph is undirected)...
int GetId() const
Returns ID of the current node.
bool higherDeg |
( |
PUNGraph & |
G, |
|
|
int |
nodeID1, |
|
|
int |
nodeID2 |
|
) |
| |
Definition at line 135 of file localmotifcluster.cpp.
Node iterator. Only forward iteration (operator++) is supported.
bool higherDeg(PUNGraph &G, TUNGraph::TNodeI &NI1, int nodeID2)
Definition at line 382 of file localmotifcluster.cpp.
int GetId() const
Returns ID of the current node.
int GetOutDeg() const
Returns out-degree of the current node.
Node iterator. Only forward iteration (operator++) is supported.
bool higherDeg |
( |
PNGraph & |
G, |
|
|
int |
nodeID1, |
|
|
int |
nodeID2 |
|
) |
| |
Definition at line 392 of file localmotifcluster.cpp.
bool higherDeg(PUNGraph &G, TUNGraph::TNodeI &NI1, int nodeID2)
Node iterator. Only forward iteration (operator++) is supported.
MotifType ParseMotifType |
( |
const TStr & |
motif, |
|
|
const bool & |
IsDirected |
|
) |
| |
Definition at line 20 of file localmotifcluster.cpp.
23 if (motif_lc ==
"m1") {
return M1; }
24 else if (motif_lc ==
"m2") {
return M2; }
25 else if (motif_lc ==
"m3") {
return M3; }
26 else if (motif_lc ==
"m4") {
return M4; }
27 else if (motif_lc ==
"m5") {
return M5; }
28 else if (motif_lc ==
"m6") {
return M6; }
29 else if (motif_lc ==
"m7") {
return M7; }
30 else if (motif_lc ==
"triad") {
return triad; }
31 else if (motif_lc ==
"cycle") {
return cycle; }
32 else if (motif_lc ==
"ffloop") {
return FFLoop; }
33 else if (motif_lc ==
"unide") {
return UniDE; }
34 else if (motif_lc ==
"bide") {
return BiDE; }
35 else if (motif_lc ==
"de") {
return DE; }
36 else if (motif_lc ==
"edge") {
return DE_any; }
41 if (motif_lc ==
"uedge") {
return UEdge; }
42 else if (motif_lc ==
"clique3") {
return clique3; }
43 else if (motif_lc ==
"clique4") {
return clique4; }
44 else if (motif_lc ==
"clique5") {
return clique5; }
45 else if (motif_lc ==
"clique6") {
return clique6; }
46 else if (motif_lc ==
"clique7") {
return clique7; }
47 else if (motif_lc ==
"clique8") {
return clique8; }
48 else if (motif_lc ==
"clique9") {
return clique9; }
static void Throw(const TStr &MsgStr)
void printMotifType |
( |
const MotifType & |
type | ) |
|
Definition at line 56 of file localmotifcluster.cpp.
58 case M1: printf(
"M1\n");
break;
59 case M2: printf(
"M2\n");
break;
60 case M3: printf(
"M3\n");
break;
61 case M4: printf(
"M4\n");
break;
62 case M5: printf(
"M5\n");
break;
63 case M6: printf(
"M6\n");
break;
64 case M7: printf(
"M7\n");
break;
65 case triad: printf(
"triad\n");
break;
66 case cycle: printf(
"cycle\n");
break;
67 case FFLoop: printf(
"FFLoop\n");
break;
68 case UniDE: printf(
"UniDE\n");
break;
69 case BiDE: printf(
"BiDE\n");
break;
70 case DE: printf(
"DE\n");
break;
71 case DE_any: printf(
"DE_any\n");
break;
73 case UEdge: printf(
"UEdge\n");
break;
74 case clique3: printf(
"clique3\n");
break;
75 case clique4: printf(
"clique4\n");
break;
76 case clique5: printf(
"clique5\n");
break;
77 case clique6: printf(
"clique6\n");
break;
78 case clique7: printf(
"clique7\n");
break;
79 case clique8: printf(
"clique8\n");
break;
80 case clique9: printf(
"clique9\n");
break;
static void Throw(const TStr &MsgStr)