The document introduces a new approach called Subgrad for detecting query graphs in source graphs, focusing on solving graph isomorphism and subgraph isomorphism challenges using adjacency matrices. It outlines the algorithm's structure and its application in graph mining across various domains, emphasizing the construction of model and reference sets to determine graph matches. The study highlights the algorithm's efficiency in handling large graph databases supporting the need for effective graph querying tools.