Data structure - application of graphs (adjacency matrix, adjacent multi-table)