Graph theory is successfully applied in developing a relationship between chemical structure and biological activity. The relationship of two graph invariants, the eccentric connectivity index and the eccentric Zagreb index are investigated with regard to anti-inflammatory activity, for a dataset consisting of 76 pyrazole carboxylic acid hydrazide analogs. The eccentricity ε v of vertex v in a graph G is the distance between v and the vertex furthermost from v in a graph G. The distance between two vertices is the length of a shortest path between those vertices in a graph G. In this paper, we consider the Octagonal Grid O n m . We compute Connective Eccentric index C ξ ( G ) = ∑ v ∈ V ( G ) d v / ε v , Eccentric Connective Index ξ ( G ) = ∑ v ∈ V ( G ) d v ε v and eccentric Zagreb index of Octagonal Grid O n m , where d v represents the degree of the vertex v in G.