Research Article

Optimal Representation of Large-Scale Graph Data Based on Grid Clustering and K2-Tree

Table 1

Comparison of spatial complexity when using an adjacency matrix and adjacency table for a directed graph and undirected graph.

Graph typeDirected graphUndirected graph

Adjacency MatrixO (n2)O (n(n − 1)/2)
Adjacency ListO (n + m)O (n + m)