def getIndex(self, indexName, indexClass):
if indexClass == "<STR_LIT>":<EOL><INDENT>try:<EOL><INDENT>return Index(indexName, indexClass, "<STR_LIT>",<EOL>self.neograph.nodes.indexes.get(indexName))<EOL><DEDENT>except client.NotFoundError:<EOL><INDENT>return None<EOL><DEDENT><DEDENT>elif indexClass == "<STR_LIT>":<EOL><INDENT>try:<EOL><INDENT>return Index(indexName, indexClass, "<STR_LIT>",<EOL>self.neograph.relationships.indexes.get(indexName))<EOL><DEDENT>except client.NotFoundError:<EOL><INDENT>return None<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise KeyError("<STR_LIT>"% indexClass)<EOL><DEDENT>
Retrieves an index with a given index name and class
        @params indexName: The index name
        @params indexClass: vertex or edge

        @return The Index object or None