graphs basis, RBTree added