| 
    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 
   | 
 
#include <localmotifcluster.h>

Public Member Functions | |
| MAPPR () | |
| void | computeAPPR (const ProcessedGraph &graph_p, const int SeedNodeId, float alpha, float eps) | 
| void | sweepAPPR (int option=-1) | 
| THash< TInt, TFlt > | getAPPR () | 
| TIntV | getCluster () | 
| void | printAPPR () | 
| void | printProfile () | 
Private Member Functions | |
| void | computeProfile (const ProcessedGraph &graph_p) | 
| void | findGlobalMin () | 
| void | findFirstlocalMin () | 
| bool | isLocalMin (int idx, double thresh=1.2) | 
Private Attributes | |
| THash< TInt, TFlt > | appr_vec | 
| int | NumPushs | 
| float | appr_norm | 
| TIntV | NodeInOrder | 
| TFltV | MtfCondProfile | 
| int | SizeGlobalMin | 
| int | SizeFirstLocalMin | 
| TIntV | Cluster | 
Definition at line 127 of file localmotifcluster.h.
| MAPPR::MAPPR | ( | ) | 
Definition at line 577 of file localmotifcluster.cpp.
References appr_norm, NumPushs, SizeFirstLocalMin, and SizeGlobalMin.
| void MAPPR::computeAPPR | ( | const ProcessedGraph & | graph_p, | 
| const int | SeedNodeId, | ||
| float | alpha, | ||
| float | eps | ||
| ) | 
Definition at line 588 of file localmotifcluster.cpp.
References appr_norm, appr_vec, THash< TKey, TDat, THashFunc >::Clr(), computeProfile(), TSnapQueue< TVal >::Empty(), TVec< TVal, TSizeTy >::GetDat(), TUNGraph::GetNI(), TUNGraph::TNodeI::GetOutDeg(), TUNGraph::TNodeI::GetOutNId(), ProcessedGraph::getTransformedGraph(), ProcessedGraph::getWeights(), NumPushs, TSnapQueue< TVal >::Pop(), TSnapQueue< TVal >::Push(), and TSnapQueue< TVal >::Top().

      
  | 
  private | 
Definition at line 637 of file localmotifcluster.cpp.
References TVec< TVal, TSizeTy >::Add(), THashSet< TKey, THashFunc >::AddKey(), appr_vec, THash< TKey, TDat, THashFunc >::BegI(), THash< TKey, TDat, THashFunc >::EndI(), findFirstlocalMin(), findGlobalMin(), THash< TKey, TDat, THashFunc >::GetDat(), TVec< TVal, TSizeTy >::GetDat(), TUNGraph::GetNI(), TUNGraph::TNodeI::GetOutDeg(), TUNGraph::TNodeI::GetOutNId(), ProcessedGraph::getTotalVolume(), ProcessedGraph::getTransformedGraph(), ProcessedGraph::getWeights(), THashSet< TKey, THashFunc >::IsKey(), MtfCondProfile, NodeInOrder, and THash< TKey, TDat, THashFunc >::SortByDat().
Referenced by computeAPPR().


      
  | 
  private | 
Definition at line 708 of file localmotifcluster.cpp.
References findGlobalMin(), isLocalMin(), TVec< TVal, TSizeTy >::Len(), MtfCondProfile, SizeFirstLocalMin, and SizeGlobalMin.
Referenced by computeProfile().


      
  | 
  private | 
Definition at line 699 of file localmotifcluster.cpp.
References TVec< TVal, TSizeTy >::Len(), MtfCondProfile, and SizeGlobalMin.
Referenced by computeProfile(), and findFirstlocalMin().


      
  | 
  inline | 
      
  | 
  private | 
Definition at line 681 of file localmotifcluster.cpp.
References TVec< TVal, TSizeTy >::Len(), and MtfCondProfile.
Referenced by findFirstlocalMin().


| void MAPPR::printAPPR | ( | ) | 
Definition at line 757 of file localmotifcluster.cpp.
References appr_norm, appr_vec, THash< TKey, TDat, THashFunc >::BegI(), THash< TKey, TDat, THashFunc >::EndI(), and NumPushs.

| void MAPPR::printProfile | ( | ) | 
Definition at line 767 of file localmotifcluster.cpp.
References TVec< TVal, TSizeTy >::Len(), MtfCondProfile, NodeInOrder, SizeFirstLocalMin, SizeGlobalMin, and TExcept::Throw().
| void MAPPR::sweepAPPR | ( | int | option = -1 | ) | 
Definition at line 730 of file localmotifcluster.cpp.
References TVec< TVal, TSizeTy >::Add(), appr_vec, TVec< TVal, TSizeTy >::Clr(), Cluster, THash< TKey, TDat, THashFunc >::Len(), NodeInOrder, SizeFirstLocalMin, SizeGlobalMin, and TExcept::Throw().

      
  | 
  private | 
Definition at line 133 of file localmotifcluster.h.
Referenced by computeAPPR(), MAPPR(), and printAPPR().
Definition at line 129 of file localmotifcluster.h.
Referenced by computeAPPR(), computeProfile(), getAPPR(), printAPPR(), and sweepAPPR().
      
  | 
  private | 
Definition at line 145 of file localmotifcluster.h.
Referenced by getCluster(), and sweepAPPR().
      
  | 
  private | 
Definition at line 137 of file localmotifcluster.h.
Referenced by computeProfile(), findFirstlocalMin(), findGlobalMin(), isLocalMin(), and printProfile().
      
  | 
  private | 
Definition at line 135 of file localmotifcluster.h.
Referenced by computeProfile(), printProfile(), and sweepAPPR().
      
  | 
  private | 
Definition at line 131 of file localmotifcluster.h.
Referenced by computeAPPR(), MAPPR(), and printAPPR().
      
  | 
  private | 
Definition at line 142 of file localmotifcluster.h.
Referenced by findFirstlocalMin(), MAPPR(), printProfile(), and sweepAPPR().
      
  | 
  private | 
Definition at line 139 of file localmotifcluster.h.
Referenced by findFirstlocalMin(), findGlobalMin(), MAPPR(), printProfile(), and sweepAPPR().