This repo contains documentation and code related to the Common Crawl Foundation's Web Graphs, stored in a Neo4j graph database. We have been computing these web graphs since 2018, and currently every crawl has a web graph covering the previous 3 crawls.
These graphs are computed by the WebGraph Framework. Historically CCF only distributed these graphs in a not-commonly-used format. This repo contains both instructions for using the graphs in neo4j form, and also code to convert from Web Graph Framework format to neo4j.
This project is in beta-testing. Please give it a try with the one domain graph we've converted, and tell us how it went!
Eventually we will provide all of our web graphs in neo4j format.
These papers give good examples of what web graphs are useful for:
- Bharat, Krishna, et al. "Who links to whom: Mining linkage between web sites." Proceedings 2001 IEEE International Conference on Data Mining. IEEE, 2001.
- Somboonviwat, Kulwadee, Masaru Kitsuregawa, and Takayuki Tamura. "Simulation study of language specific web crawling." 21st International Conference on Data Engineering Workshops (ICDEW'05). IEEE, 2005.
- Lehmberg, Oliver, Robert Meusel, and Christian Bizer. "Graph structure in the web: aggregated by pay-level domain." Proceedings of the 2014 ACM conference on Web science. 2014.
We recommend 2–4 CPU cores or more, 16–32 GB of memory, and ample storage -- 512GB to 1TB.
These instructions set up a Neo4j image inside a docker container. The container is configured to accept exec operations as described in this README.
mkdir -p data/neo4j_db data/import data/export logs plugins
PW=asdfasdf CONAME=web-graph-neo4j bash create.sh
docker stop web-graph-neo4j
Important
Buglet: logs/, data/neo4j_db end up owned by user:group 7474:7474
The proper way to fix the permissions is to create a user with that uid/gid on the host and chown the directories to that user.
sudo groupadd -g 7474 neo4j
sudo useradd -u 7474 -g 7474 neo4j;
sudo chown -R neo4j:neo4j data logsYou could also add your own user to group neo4j for simplified access.
At this point you have a container (with Neo4J not running yet) that you can stop and start and run commands in. For example,
docker start web-graph-neo4j
docker exec web-graph-neo4j ls /data
docker stop web-graph-neo4j
Also, note that there are 3 special directories on the local disk, one for the neo4j database, one for incoming files, and one for files created by running commands in the container. These are:
- data/neo4j_db
- data/import
- data/export
Our pre-made neo4j format web graphs are stored as neo4j dump files. To use them, you'll have to download the dumps, and then load them.
wget https://data.commoncrawl.org/projects/web-graph-testing/v1/cc-main-2025-oct-nov-dec-domain-system.dump
wget https://data.commoncrawl.org/projects/web-graph-testing/v1/cc-main-2025-oct-nov-dec-domain-neo4j.dump
or from inside AWS:
s3://commoncrawl/projects/web-graph-testing/v1/cc-main-2025-oct-nov-dec-domain-system.dump
s3://commoncrawl/projects/web-graph-testing/v1/cc-main-2025-oct-nov-dec-domain-neo4j.dump
This step turns the dump files into a neo4j database. Note that the database will be about 2.5X the size of the dump.
Move the dumps in the import directory
mv cc-main-2025-oct-nov-dec-domain-system.dump data/import/system.dump
mv cc-main-2025-oct-nov-dec-domain-neo4j.dump data/import/neo4j.dumpImportant
Load and dump operations should always be performed with Neo4J in offline mode, or stopped.
You can check using docker exec web-graph-neo4j neo4j status
Load the system and neo4j databases:
docker start web-graph-neo4j
docker exec web-graph-neo4j neo4j-admin database load --expand-commands system --from-path=/import --overwrite-destination=true
docker exec web-graph-neo4j neo4j-admin database load --expand-commands neo4j --from-path=/import --overwrite-destination=true
docker stop web-graph-neo4jAt this point, you should see the unpacked database in data/neo4j_db. If you like, you can now remove the 2 dump files
in import/
The container is configured to sleep infinitely, after starting, you can "exec" to start up neo4j:
docker start web-graph-neo4j
docker exec web-graph-neo4j neo4j startAfter, you can access it with a browser at https://localhost:7474/
If you want to run scripts against neo4j, write the output into /export
The web dashboard looks like:
Example Node details of host-level or domain-level Web Graph (Note: num_hosts is only provided in domain-level):
| Key | Value |
|---|---|
<id> |
4:5b402213-36e2-4fd4-af16-2f4de077133b:50869977 |
| num_hosts | 2365 |
| host_parts | ["com", "microsoft"] |
| id | "105638887" |
Our data originates from The Web Graph, and the insights align with Web Graph Statistics; the project presents results on Neo4j.
We'd love to hear from you. Feedback and code contributions are mostly welcome!
For example, let us know whether the instructions ran end-to-end on your machine, don't forget to note OS, RAM, disk, and the Web Graph release you used. Should you have ideas of analysis or queries you would like ot run on the Web Graph, please them our way as well and we will be delighted to help you.
