Browse Source

add import for example of graphdata

tags/v1.5.0-rc1
ms_yan 4 years ago
parent
commit
c9c11454fe
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      mindspore/dataset/engine/graphdata.py

+ 1
- 0
mindspore/dataset/engine/graphdata.py View File

@@ -302,6 +302,7 @@ class GraphData:
The first one is offset table, the second one is neighbors

Examples:
>>> from mindspore.dataset.engine import OutputFormat
>>> nodes = graph_dataset.get_all_nodes(node_type=1)
>>> neighbors = graph_dataset.get_all_neighbors(node_list=nodes, neighbor_type=2)
>>> neighbors_coo = graph_dataset.get_all_neighbors(node_list=nodes, neighbor_type=2,


Loading…
Cancel
Save