Abstract
This paper introduces RHOG ((\rho)G), a comprehensive library and theoretical framework for working with Directed Labeled Graphs (DLGs). It provides the mathematical foundations for "refinement operators"—tools that allow for the systematic navigation of graph spaces by making structures more specific or more general. By defining these operators and enforcing constraints like Object Identity, the framework offers a robust method for calculating similarity and distance in complex structured data, independent of specific machine learning models.
Introduction
Graphs are a powerful way to represent complex data, from molecular structures to social networks. However, comparing two graphs is notoriously difficult. Standard approaches like graph kernels or graph edit distance often come with implicit biases or high computational costs. The author identifies a gap: the lack of a general, theoretically grounded library for "refining" graphs. In structured machine learning, operations like finding the "Least General Generalization" (the most specific thing two graphs have in common) are often ad-hoc and lack guarantees of completeness or correctness.
The RHOG Framework
The paper builds its framework on several key pillars designed to provide precise navigation of graph structures:
- Refinement Operators: These are the core "engines." A downward operator ((\rho)) takes a graph and generates a set of more specific graphs (e.g., by adding an edge or a vertex). An upward operator ((\gamma)) does the opposite, generalizing the graph.
- Subsumption Relations: The paper defines what it means for one graph to "subsume" (be more general than) another. It introduces Transitive Subsumption, where a single edge in a general graph (like "descendant") can map to a path of edges in a more specific graph.
- Label Hierarchies: Unlike many systems that treat labels as flat strings, RHOG supports Order-labeled DLGs, where labels themselves exist in a taxonomy (e.g., a "Car" vertex is more specific than a "Vehicle" vertex).
Theoretical Insights: Object Identity
A crucial constraint introduced is Object Identity (OI). By enforcing that different symbols in a graph must represent distinct entities, the author proves that the refinement operators become "ideal"—meaning they are finite, complete, and do not produce redundant equivalent graphs. Without OI, operators might generate infinite loops of equivalent graphs; with it, the search space becomes manageable.
Similarity and Disintegration
The library implements two main types of similarity measures:
- Anti-unification-based: Measures similarity based on the size of the most specific common generalization.
- Properties-based (Disintegration): Breaks a graph down into a set of simpler "properties" (features) that can be weighted and used in standard supervised learning. This "Graph Disintegration" systematically strips away information to identify every unique property the graph possesses.
Key Results and Limitations
The primary results are theoretical proofs confirming that for both flat and ordered labels, and for both regular and transitive subsumption, the proposed operators are locally finite, complete, and proper (when OI is enforced). Additionally, the library includes specialized, high-efficiency implementations for trees.
However, because graph subsumption is NP-hard, the computational cost can be high for extremely large graphs. Currently, the library does not provide numerical approximations. Future work is aimed at developing heuristic versions to scale to "big data" applications and exploring integration with Graph Neural Networks (GNNs).
Summary updated