C++ Heap and Graphs

Hello!
So I have an exam tomorrow and I have some unanswered questions.
I need a code (preferrably in C++) that would allow to add and remove elements from heap.
Also i need a code that would allow to search the graph (directed or undirected) Breath-First and Depth-First.
Could some one please link me to these codes or write them here in answers?
Topic archived. No new replies allowed.