expandCluster(P, NeighborPts, C, eps, MinPts) add P to cluster C for each point P’ in NeighborPts if P’ is not visited mark P’ as visited NeighborPts’ = regionQuery(P’, eps) if sizeof(NeighborPts’) >= MinPts NeighborPts = NeighborPts joined with NeighborPts’ if P’ is not yet member of any cluster add P’ to cluster C