SNAP Library 2.3, Developer Reference
2014-06-16 11:58:46
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Connected Sub-graph Enumeration. More...
#include <ghash.h>
Public Member Functions | |
TSubGraphsEnum (PNGraph Graph) | |
void | Gen2Graphs () |
void | EnumSubGraphs (const int &MaxEdges) |
void | RecurBfs (const int &MxDepth) |
void | RecurBfs (const int &NId, const int &Depth, TSimpleGraph &PrevG) |
void | RecurBfs1 (const int &MxDepth) |
void | RecurBfs1 (const int &NId, const int &Depth) |
Private Attributes | |
TSimpleGraphV | SgV |
TSimpleGraphV | NextSgV |
THash< TIntPr, TIntH > | EdgeH |
PNGraph | NGraph |
void TSubGraphsEnum::EnumSubGraphs | ( | const int & | MaxEdges | ) |
Definition at line 312 of file ghash.cpp.
References TVec< TVal, TSizeTy >::Add(), TVec< TVal, TSizeTy >::Clr(), TVec< TVal, TSizeTy >::Gen(), Gen2Graphs(), TSimpleGraph::GetEdgeV(), TExeTm::GetTmStr(), TSimpleGraph::Join(), TVec< TVal, TSizeTy >::Last(), TVec< TVal, TSizeTy >::Len(), NextSgV, SgV, TVec< TVal, TSizeTy >::Sort(), and TExeTm::Tick().
void TSubGraphsEnum::Gen2Graphs | ( | ) |
Definition at line 282 of file ghash.cpp.
References TVec< TVal, TSizeTy >::Add(), TNGraph::BegNI(), TSimpleGraph::Dump(), TNGraph::EndNI(), TVec< TVal, TSizeTy >::Gen(), TNGraph::GetEdges(), TSimpleGraph::GetEdgeV(), TVec< TVal, TSizeTy >::Len(), TMath::Mn(), TVec< TVal, TSizeTy >::MoveFrom(), TMath::Mx(), NextSgV, NGraph, SgV, TVec< TVal, TSizeTy >::Sort(), TPair< TVal1, TVal2 >::Val1, and TPair< TVal1, TVal2 >::Val2.
Referenced by EnumSubGraphs().
void TSubGraphsEnum::RecurBfs | ( | const int & | MxDepth | ) |
Definition at line 345 of file ghash.cpp.
References TNGraph::BegNI(), TVec< TVal, TSizeTy >::Clr(), TNGraph::EndNI(), TExeTm::GetTmStr(), TVec< TVal, TSizeTy >::Len(), NGraph, SgV, and TVec< TVal, TSizeTy >::Sort().
Referenced by RecurBfs().
void TSubGraphsEnum::RecurBfs | ( | const int & | NId, |
const int & | Depth, | ||
TSimpleGraph & | PrevG | ||
) |
Definition at line 363 of file ghash.cpp.
References TVec< TVal, TSizeTy >::Add(), TSimpleGraph::AddEdge(), TNGraph::TNodeI::GetId(), TNGraph::TNodeI::GetInDeg(), TNGraph::TNodeI::GetInNId(), TNGraph::GetNI(), TNGraph::TNodeI::GetOutDeg(), TNGraph::TNodeI::GetOutNId(), TVec< TVal, TSizeTy >::Len(), NGraph, RecurBfs(), SgV, and TVec< TVal, TSizeTy >::Sort().
void TSubGraphsEnum::RecurBfs1 | ( | const int & | MxDepth | ) |
Definition at line 386 of file ghash.cpp.
References TNGraph::BegNI(), TVec< TVal, TSizeTy >::Clr(), TNGraph::EndNI(), TExeTm::GetTmStr(), TVec< TVal, TSizeTy >::Len(), NGraph, SgV, and TVec< TVal, TSizeTy >::Sort().
Referenced by RecurBfs1().
void TSubGraphsEnum::RecurBfs1 | ( | const int & | NId, |
const int & | Depth | ||
) |
Definition at line 407 of file ghash.cpp.
References TVec< TVal, TSizeTy >::Add(), EdgeH, TNGraph::TNodeI::GetInDeg(), TNGraph::TNodeI::GetInNId(), TNGraph::GetNI(), TNGraph::TNodeI::GetOutDeg(), TNGraph::TNodeI::GetOutNId(), NGraph, RecurBfs1(), SgV, and TVec< TVal, TSizeTy >::Sort().
Definition at line 563 of file ghash.h.
Referenced by RecurBfs1().
|
private |
Definition at line 562 of file ghash.h.
Referenced by EnumSubGraphs(), and Gen2Graphs().
|
private |
Definition at line 564 of file ghash.h.
Referenced by Gen2Graphs(), RecurBfs(), and RecurBfs1().
|
private |
Definition at line 562 of file ghash.h.
Referenced by EnumSubGraphs(), Gen2Graphs(), RecurBfs(), and RecurBfs1().