code: def rings_nodes(self, include_root_node=False, include_satellites=False):
          
          for circ_breaker in self.circuit_breakers():
              if circ_breaker.status is 'open':
                  circ_breaker.close()
                  logger.info('Circuit breakers were closed in order to find MV '
                              'rings')
  
          for ring in nx.cycle_basis(self._graph, root=self._station):
              if not include_root_node:
                  ring.remove(self._station)
  
              if include_satellites:
                  ring_nodes = ring
                  satellites = []
                  for ring_node in ring:
                      # determine all branches diverging from each ring node
                      satellites.append(
                          self.graph_nodes_from_subtree(
                              ring_node,
                              include_root_node=include_root_node
                          )
                      )
                  # return ring and satellite nodes (flatted list of lists)
                  yield ring + [_ for sublist in satellites for _ in sublist]
              else:
                  yield ring
docs: Returns a generator for iterating over rings (=routes of MVGrid's graph)
  
          Args
          ----
          include_root_node: bool, defaults to False
              If True, the root node is included in the list of ring nodes.
          include_satellites: bool, defaults to False
              If True, the satellite nodes (nodes that diverge from ring nodes) is included in the list of ring nodes.
              
          Yields
          ------
          :any:`list` of :obj:`GridDing0`
              List with nodes of each ring of _graph in- or excluding root node (HV/MV station) (arg `include_root_node`),
              format::
               
              [ ring_m_node_1, ..., ring_m_node_n ]
              
          Notes
          -----
              Circuit breakers must be closed to find rings, this is done automatically.