SNAP Library 6.0, User Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
subgraph.cpp File Reference

Go to the source code of this file.

Namespaces

 TSnap
 Main namespace for all the Snap global entities.
 

Functions

PUNGraph TSnap::GetSubGraph (const PUNGraph &Graph, const TIntV &NIdV, const bool &RenumberNodes=false)
 Returns an induced subgraph of an undirected graph Graph with NIdV nodes with an optional node renumbering. More...
 
PNGraph TSnap::GetSubGraph (const PNGraph &Graph, const TIntV &NIdV, const bool &RenumberNodes)
 
PUNGraph TSnap::GetEgonet (const PUNGraph &Graph, const int CtrNId, int &ArndEdgesX)
 Returns the egonet of node CtrNId as center in undirected graph Graph. And returns number of edges around the egonet. More...
 
PNGraph TSnap::GetEgonet (const PNGraph &Graph, const int CtrNId, int &InEgoEdgesX, int &OutEgoEdgesX)
 Returns the egonet of node CtrNId as center in directed graph Graph. And returns number of edges go in and out the egonet. More...
 
void TSnap::AddNodeWithAttributes (const PNEANet &Graph1, PNEANet &Graph2, const int NId)
 
void TSnap::AddEdgeWithAttributes (const PNEANet &Graph1, PNEANet &Graph2, const int EId)
 
void TSnap::AddEdgeWithAttributes (const PNEANet &Graph1, PNEANet &Graph2, const int NId, const int NbrId)
 
PNEANet TSnap::GetEgonetAttr (const PNEANet &Graph, const int CtrNId, const int Radius)
 Returns the complete egonet of at given radius and copies node and edge attributes. More...
 
PNEANet TSnap::GetInEgonetAttr (const PNEANet &Graph, const int CtrNId, const int Radius)
 Returns the in-egonet of at given radius and copies node and edge attributes. More...
 
PNEANet TSnap::GetOutEgonetAttr (const PNEANet &Graph, const int CtrNId, const int Radius)
 Returns the out-egonet of at given radius and copies node and edge attributes. More...
 
PNEANet TSnap::GetInEgonetSubAttr (const PNEANet &Graph, const int CtrNId, const int Radius, const int MaxNum, const float percent)
 Returns the randomly sampled egonet with nodes sampled based on percentage or raw number, copying attributes. More...
 
PNEANet TSnap::GetGraphUnionAttr (PNEANet &DstGraph, const PNEANet &SrcGraph)