Advance Collection Structure for Graph and Trees