docs: def __get_segments_from_node(node, graph):
      """Calculates the segments that can emanate from a particular node on the main cycle."""
      list_of_segments = []
      node_object = graph.get_node(node)
      for e in node_object['edges']:
          list_of_segments.append(e)
      return list_of_segments