arXiv:2610.09842cs.HCOct 2026

Manuscript Offprint

arXiv:2610.09842

Empowering Users in Graph Rule Mining via Large Language Models

Francesco Cambria, Francesco Invernici, Andrea Colombo, Anna Bernasconi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

FRANCESCO CAMBRIA, Politecnico di Milano, Italy

FRANCESCO INVERNICI, Politecnico di Milano, Italy

ANDREA COLOMBO, Politecnico di Milano, Italy

ANNA BERNASCONI, Politecnico di Milano, Italy

In the era of interconnected data, graphs have emerged as an effective abstraction for modeling complex systems in an intuitive format, especially with the rise of Property Graphs, which offer an intuitive and scalable way of navigating non-intuitive structures. In this context, graph mining techniques have been developed for testing complex graph-based rules, as the MINE GRAPH RULE operator, which, however, require users to have prior expertise both in graph theory and formal query language. In this work, we propose to bridge the gap between users and the graph-association rule-mining process by showing how Large Language Models (LLMs) can be easily prompted to formulate, refine, and interpret complex relational rules, directly producing MINE GRAPH RULE queries.

Additional Key Words and Phrases: Graph Database, Association Rules Mining, Large Language Models

ACM Reference Format:

Francesco Cambria, Francesco Invernici, Andrea Colombo, and Anna Bernasconi. 2026. Empowering Users in Graph Rule Mining via Large Language Models. In Proceedings of CHI Conference on Human Factors in Computing Systems (CHI '26). ACM, New York, NY, USA, 5 pages. https://doi.org/XXXXXXX.XXXXXXX

1 Introduction

In the era of interconnected data, graphs have emerged as a premier abstraction for modeling complex systems effectively. Unlike traditional tabular formats, graph structures preserve and leverage the rich context of connections inherent in domains such as social networks [1], financial infrastructure [5], and biological ecosystems [8]. By representing entities as nodes and their interactions as edges -each enriched with specific attributes- property graphs capture the complexities of real-world phenomena in which the relationships between data points are as significant as the data points themselves. However, this expressive power introduces substantial challenges, including query scalability and the difficulty of navigating non-intuitive, high-dimensional structures.

To extract value from these complex structures, traditional data mining techniques have been adapted to the property graph domain. Among these, association rule mining remains highly effective for uncovering latent insights within structured data. When applied to property graphs, this process seeks to identify associations within frequent topological patterns. To this end, various specialized methods have been developed, including Graph Pattern Association Rules (GPAR) [3], Graph Association Rules (GARs) [4], and Path Association Rule Mining (PARM) [7], among others.

Authors' Contact Information: Francesco Cambria, Politecnico di Milano, Milano, Italy, francescoluciano.cambria@polimi.it; Francesco Invernici, Politecnico di Milano, Milano, Italy, francesco.invernici@polimi.it; Andrea Colombo, Politecnico di Milano, Milano, Italy, andrea.colombo@polimi.it; Anna Bernasconi, Politecnico di Milano, Milano, Italy, anna.bernasconi@polimi.it.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.

Cambria et al.

Building upon these foundations, Cambria et al. [2] introduced MINE GRAPH RULE, an operator that establishes a formal syntax for extracting association rules directly from property graph databases. To facilitate practical application, in the original work, this operator was implemented as a stored procedure within Neo4j, one of the most widely adopted property graph database engines. Using the operator forces to adhere to a strict formal structure, leading users to more precise configurations and consistent graph association rules. Furthermore, the operator also defines connections with more complex logic (such as counting edges or evaluating multi-hop paths), ultimately extracting more nuanced rules.

Yet, despite the availability of such powerful operators, the structural complexity of graphs remains a significant barrier to accessibility for researchers without a computational background. Domain experts in sociology or medicine often possess profound intuitive knowledge of their data, but they are frequently hindered by the steep learning curve of the specialized query languages required for graph-based discovery. Recognizing this challenge, recent efforts have begun to explore more flexible interfaces; for instance, Le et al. [6] exploit Large Language Models (LLMs) to better integrate domain experts within the mining pipeline. Following this trajectory, this paper proposes using LLMs as effective mediators to bridge the gap between users and the graph-association rule mining process. By abstracting the syntactical complexities of the MINE GRAPH RULE operator, our approach enables researchers to leverage graph mining techniques both accurately and intuitively. Ultimately, this framework extends graph mining capabilities to a broader audience, allowing domain experts to formulate, refine, and interpret complex relational rules without requiring prior expertise in graph theory or formal query languages.