adding rocks for graph and nngraph