結果 : graph representation using array and linked list