1 #ifndef snap_motifcluster_h
2 #define snap_motifcluster_h
191 #endif // snap_motifcluster_h
void AdjustLabels(int kcurr, int klast, const TIntV &U)
static bool IsMotifM12(PNGraph graph, int center, int v, int w)
void FlushCliques(const TIntV &U)
static MotifType ParseMotifType(const TStr &motif)
static bool IsMotifM10(PNGraph graph, int center, int v, int w)
static bool IsMotifM2(PNGraph graph, int u, int v, int w)
static bool IsMotifM7(PNGraph graph, int u, int v, int w)
static bool IsMotifM4(PNGraph graph, int u, int v, int w)
static bool IsMotifM11(PNGraph graph, int center, int v, int w)
static bool IsMotifM1(PNGraph graph, int u, int v, int w)
void SubgraphDegreeOrder(int k, const TIntV &U, TIntV &order)
static bool IsBidirEdge(PNGraph graph, int u, int v)
static bool IsMotifM13(PNGraph graph, int center, int v, int w)
static bool IsMotifM3(PNGraph graph, int u, int v, int w)
void UpdateWeights(const TIntV &clique)
static void SpectralCut(const WeightVH &weights, TSweepCut &sweepcut, double tol=kDefaultTol, int maxiter=kMaxIter)
static void MotifAdjacency(PNGraph graph, MotifType motif, WeightVH &weights)
TVec< THash< TInt, TInt > > WeightVH
static void WedgeMotifAdjacency(PNGraph graph, MotifType motif, WeightVH &weights)
void CliqueEnum(int k, const TIntV &U)
ChibaNishizekiWeighter(PUNGraph graph)
static void BifanMotifAdjacency(PNGraph graph, WeightVH &weights)
static bool IsMotifM9(PNGraph graph, int center, int v, int w)
static bool IsMotifM6(PNGraph graph, int u, int v, int w)
static void TriangleMotifAdjacency(PNGraph graph, MotifType motif, WeightVH &weights)
static bool IsUnidirEdge(PNGraph graph, int u, int v)
static void DegreeOrdering(PNGraph graph, TIntV &order)
TVec< TVec< TIntV > > graph_
static double NFiedlerVector(const TSparseColMatrix &W, TFltV &fvec, double tol=kDefaultTol, int maxiter=kMaxIter)
void SymeigsSmallest(const TSparseColMatrix &A, int nev, TFltV &evals, TFullColMatrix &evecs, double tol=kDefaultTol, int maxiter=kMaxIter)
static bool IsMotifM5(PNGraph graph, int u, int v, int w)
static bool IsMotifM8(PNGraph graph, int center, int v, int w)
static void SemicliqueMotifAdjacency(PUNGraph graph, WeightVH &weights)
static void CliqueMotifAdjacency(PUNGraph graph, int clique_size, WeightVH &weights)
static bool IsNoEdge(PNGraph graph, int u, int v)
static void GetMotifCluster(PNGraph graph, MotifType motif, TSweepCut &sweepcut, double tol=kDefaultTol, int maxiter=kMaxIter)
Vector is a sequence TVal objects representing an array that can change in size.
static void EdgeMotifAdjacency(PNGraph graph, WeightVH &weights)