RHOG: A Refinement-Operator Library for Directed Labeled Graphs

Santiago OntañónarXiv 2016

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).
Example of a label hierarchy \(L\) and two graphs \(g_1, g_2\) where labels and structures are compared under the hierarchy.

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.

Illustration of Transitive Subsumption where edges in \(g_1\) map to paths in \(g_2\) within a label hierarchy.

Similarity and Disintegration

The library implements two main types of similarity measures:

  1. Anti-unification-based: Measures similarity based on the size of the most specific common generalization.
  2. 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

Abstract

This document provides the foundations behind the functionality provided by the $\rho$G library (https://github.com/santiontanon/RHOG), focusing on the basic operations the library provides: subsumption, refinement of directed labeled graphs, and distance/similarity assessment between directed labeled graphs. $\rho$G development was initially supported by the National Science Foundation, by the EAGER grant IIS-1551338.
BibTeX
@misc{ontanon2016rhog,
  author = {Santiago Ontañón},
  title = {{RHOG: A Refinement-Operator Library for Directed Labeled Graphs}},
  year = {2016},
  eprint = {1604.06954},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1604.06954},
}
Figure