Redesigned graphlets API (#513).