graph and binary tree