SNAP Library 4.0, Developer Reference
2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Simple directed/undirected graph defined by its edges. More...
#include <ghash.h>
Public Member Functions | |
TSimpleGraph () | |
TSimpleGraph (const TIntPrV &GEdgeV) | |
bool | operator== (const TSimpleGraph &Graph) const |
bool | operator< (const TSimpleGraph &Graph) const |
int | GetEdges () const |
void | AddEdge (const int &SrcNId, const int &DstNId) |
bool | Join (const TSimpleGraph &G1, const TSimpleGraph &G2) |
TIntPrV & | GetEdgeV () |
TIntPrV & | operator() () |
void | Dump (const TStr &Desc=TStr()) const |
Private Attributes | |
TIntPrV | EdgeV |
|
inline |
Definition at line 549 of file ghash.h.
References TVec< TVal, TSizeTy >::Add(), and EdgeV.
Referenced by TSubGraphsEnum::RecurBfs().
Definition at line 274 of file ghash.cpp.
References TStr::CStr(), EdgeV, TStr::Empty(), and TVec< TVal, TSizeTy >::Len().
Referenced by TSubGraphsEnum::Gen2Graphs().
|
inline |
Definition at line 548 of file ghash.h.
References EdgeV, and TVec< TVal, TSizeTy >::Len().
Referenced by Join().
|
inline |
Definition at line 551 of file ghash.h.
References EdgeV.
Referenced by TSubGraphsEnum::EnumSubGraphs(), and TSubGraphsEnum::Gen2Graphs().
bool TSimpleGraph::Join | ( | const TSimpleGraph & | G1, |
const TSimpleGraph & | G2 | ||
) |
Definition at line 233 of file ghash.cpp.
References EdgeV, TVec< TVal, TSizeTy >::Gen(), GetEdges(), IAssert, and TVec< TVal, TSizeTy >::Last().
Referenced by TSubGraphsEnum::EnumSubGraphs().
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 541 of file ghash.h.
Referenced by AddEdge(), Dump(), GetEdges(), GetEdgeV(), Join(), operator()(), operator<(), and operator==().