public static <F> GraphData<F> createGraphData(
NodeTreeProvider<F> provider,
GraphModel graph, DirectedRelationFinder relFinder) {
TreeModel hierarchy =
new HierarchicalTreeModel(graph.computeSpanningHierarchy(relFinder));
return new GraphData<F>(provider, hierarchy);
}