arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.11039cs.CLcs.AIcs.DS
收藏

图的表示指令集

Instruction set for the representation of graphs

Department of Computer Languages and Computer Science University of Málaga(计算机语言与计算机科学系马德里大学);ITIS Software. Universidad de Málaga(ITIS软件. 马德里大学)

Ezequiel Lopez-Rubio, Mario Pascual-Gonzalez

AI总结:

IsalGraph通过紧凑的字符串编码实现图结构的表示,具有同构不变性和语言模型兼容性,适用于图相似性搜索和生成。

摘要:

我们提出了IsalGraph,一种将任意有限简单图的结构表示为九字符指令字母上的紧凑字符串的方法。编码过程由一个包含稀疏图、图节点引用的循环双链表(CDLL)和两个遍历指针的小虚拟机执行。指令要么通过CDLL移动指针,要么将节点或边插入到图中。一个关键设计属性是,字母表上的每个字符串都能解码为有效的图,没有无效状态可达。一种贪心的GraphToString算法可以在多项式时间内将任意连通图编码为字符串;一种穷举回溯变体通过在所有起始节点和所有有效遍历顺序中选择字典序最小的最短字符串生成标准字符串。我们评估了该表示方法在五个真实世界图基准数据集(IAM Letter LOW/MED/HIGH、LINUX和AIDS)上的表现,并展示了IsalGraph字符串与图编辑距离(GED)之间的Levenshtein距离具有很强的相关性。这些特性使IsalGraph字符串成为一种紧凑的、同构不变的、且语言模型兼容的图结构顺序编码,直接应用于图相似性搜索、图生成和图条件语言建模。

英文摘要:

We present IsalGraph, a method for representing the structure of any finite, simple graph as a compact string over a nine-character instruction alphabet. The encoding is executed by a small virtual machine comprising a sparse graph, a circular doubly-linked list (CDLL) of graph-node references, and two traversal pointers. Instructions either move a pointer through the CDLL or insert a node or edge into the graph. A key design property is that every string over the alphabet decodes to a valid graph, with no invalid states reachable. A greedy \emph{GraphToString} algorithm encodes any connected graph into a string in time polynomial in the number of nodes; an exhaustive-backtracking variant produces a canonical string by selecting the lexicographically smallest shortest string across all starting nodes and all valid traversal orders. We evaluate the representation on five real-world graph benchmark datasets (IAM Letter LOW/MED/HIGH, LINUX, and AIDS) and show that the Levenshtein distance between IsalGraph strings correlates strongly with graph edit distance (GED). Together, these properties make IsalGraph strings a compact, isomorphism-invariant, and language-model-compatible sequential encoding of graph structure, with direct applications in graph similarity search, graph generation, and graph-conditioned language modelling

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑