get_subnet_adj_list function

Return an adjacency list of subnets