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

dgld.models.GUIDE.guide_utils.get_struct_feat(graph: DGLHeteroGraph)[source]

Generate the struct feature.Use the number of the motifs to express.

Parameters

graph (DGL.Graph) – input graph

Return type

the struct feature

dgld.models.GUIDE.guide_utils.get_subargs(args)[source]
dgld.models.GUIDE.guide_utils.set_subargs(parser)[source]