Added support for memory efficient long representation for small subgraphs.