NF: generates dendogram for graph, can return nodes in partitions at each level