5. Tree - Binary
1. Array
1) 2*index : left child, 2*index + 1 : right child
2) left child : index_p, right child : index_q
2. Vector
Vector <Type> a[Size];
a[from].push_back(to);
a[to].push_back(from);
6. Tree - General
1. Linked List
list <Type> (Name)[Size];
2. Vector
vector <Type> a[Size];
a[from].push_back(to); a[to].push_back(from);
list와 vector 모두 똑같이 사용할 수 있다.