dgld.models.GUIDE.guide_utils
- dgld.models.GUIDE.guide_utils.cal_motifs(nx_g, x, idx)[source]
count the number of motifs
- Parameters
nx_g (networkx.Graph) – the graph
x (int) – the node id you want count
idx (int) – the motifs id you want count
- Return type
the number of motifs