Created framework for extracting trees from graphs.