add c version to build edge index.