Creating adjacency list header