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
|
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().
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 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 Dump(), GetEdgeV(), Join(), operator()(), operator<(), and operator==().