rst: refactored extract_relationtypes()
rst: refactored RSTGraph.__init__(): no need for empty graphs