class_docstr: Helper class to build experiments or trials graph.
class_docstr_tok: ["Helper","class","to","build","experiments","or","trials","graph","."]
docstr: Return sorted edges (node, child)
docstr_tok: ["Return","sorted","edges","(","node",",","child",")"]
code: def get_sorted_links(self):
      """Return sorted edges (node, child)"""
      for node in self._get_sorted_nodes():
          if node.children:
              for child_node in node.children:
                  yield node.item, child_node.item
          else:
              yield node.item, None
  
imports: import logging
  import os
  import shutil
  from typing import Any, Dict, List
  from orion.core.io.database import DatabaseError
  from orion.core.io.database.pickleddb import PickledDB
  from orion.core.utils import generate_temporary_file
  from orion.core.utils.tree import TreeNode
  from orion.storage.base import BaseStorageProtocol, setup_storage
label_desc: Use image node_id 5 for calling the _Graph obj's underlying member method code with example usage: obj.get_sorted_links() without return types