dgl.DGLGraph.srctypes¶
-
property
DGLGraph.
srctypes
¶ Return all the source node type names in this graph.
If the graph can further divide its node types into two subsets A and B where all the edeges are from nodes of types in A to nodes of types in B, we call this graph a uni-bipartite graph and the nodes in A being the source nodes and the ones in B being the destination nodes. If the graph is not uni-bipartite, the source and destination nodes are just the entire set of nodes in the graph.
See also
Examples
The following example uses PyTorch backend.
Query for a uni-bipartite graph.
Query for a graph that is not uni-bipartite.