We give a polynomial delay algorithm, that for any graph G and positive integer k, enumerates all connected induced subgraphs of G of order k. Our algorithm enumerates each subgraph in at most O((kmin{(n−k),kΔ})2(Δ+logk)) and uses linear space O(n+m), where n and m are respectively the number of vertices and edges of G and Δ is the maximum degree.
@article{arxiv.1411.2262,
title = {A Polynomial Delay Algorithm for Generating Connected Induced Subgraphs of a Given Cardinality},
author = {Khaled Elbassioni},
journal= {arXiv preprint arXiv:1411.2262},
year = {2016}
}