Need Help in solving trees and graph problems

I am not able to solve problem related to trees and graphs. Can anyone suggest me good resources on how to implement basic trees and graphs using C++.