English

Data structure for representing a graph: combination of linked list and hash table

Data Structures and Algorithms 2009-08-24 v1

Abstract

In this article we discuss a data structure, which combines advantages of two different ways for representing graphs: adjacency matrix and collection of adjacency lists. This data structure can fast add and search edges (advantages of adjacency matrix), use linear amount of memory, let to obtain adjacency list for certain vertex (advantages of collection of adjacency lists). Basic knowledge of linked lists and hash tables is required to understand this article. The article contains examples of implementation on Java.

Keywords

Cite

@article{arxiv.0908.3089,
  title  = {Data structure for representing a graph: combination of linked list and hash table},
  author = {Maxim A. Kolosovskiy},
  journal= {arXiv preprint arXiv:0908.3089},
  year   = {2009}
}

Comments

7 pages

R2 v1 2026-06-21T13:37:42.775Z