Update README.md
Browse files
README.md
CHANGED
|
@@ -9,31 +9,83 @@ tags:
|
|
| 9 |
# The GraphTide Real-World Dynamic Graph Datasets
|
| 10 |
|
| 11 |
GraphTide is a collection of large-scale, real-world dynamic graph
|
| 12 |
-
datasets with authentic temporal information. It
|
| 13 |
-
|
| 14 |
temporal graph analysis.
|
| 15 |
|
| 16 |
-
Source code, I/O
|
| 17 |
-
|
| 18 |
-
[GraphTide GitHub repository](https://github.com/wheatman/GraphTide).
|
| 19 |
|
| 20 |
## Graph Types
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
- **Signal graphs** record timestamped interactions between vertices,
|
| 25 |
-
such as transactions, comments, commits, or flights.
|
| 26 |
- **Update graphs** record explicit edge insertions and deletions,
|
| 27 |
allowing the graph state to be reconstructed over time.
|
| 28 |
|
| 29 |
-
|
| 30 |
|
| 31 |
```text
|
| 32 |
signal_graphs/ Timestamped edge-event streams
|
| 33 |
update_graphs/ Explicit edge insertion/deletion streams
|
| 34 |
```
|
| 35 |
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
## Download
|
| 39 |
|
|
@@ -63,115 +115,71 @@ hf download DynamicGraphsProvider/GraphTide \
|
|
| 63 |
The complete collection is large, so downloading individual files is
|
| 64 |
recommended.
|
| 65 |
|
| 66 |
-
## Reading
|
| 67 |
|
| 68 |
-
Install the GraphTide
|
| 69 |
|
| 70 |
```bash
|
| 71 |
git clone https://github.com/wheatman/GraphTide.git GraphTide-code
|
| 72 |
python -m pip install -e ./GraphTide-code
|
| 73 |
```
|
| 74 |
|
| 75 |
-
|
| 76 |
|
| 77 |
```python
|
| 78 |
-
from pybinding import read_header
|
| 79 |
-
|
| 80 |
-
header = read_header(
|
| 81 |
-
"GraphTide-data/signal_graphs/soc-youtube-growth.bin"
|
| 82 |
-
)
|
| 83 |
-
print(header)
|
| 84 |
-
```
|
| 85 |
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
```python
|
| 89 |
-
from pybinding import read_bin
|
| 90 |
|
| 91 |
-
header
|
| 92 |
-
|
| 93 |
-
)
|
| 94 |
```
|
| 95 |
|
| 96 |
Large datasets should be processed with the streaming C++ I/O
|
| 97 |
interface rather than loaded completely into memory.
|
| 98 |
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
Each file begins with a 32-byte little-endian header containing:
|
| 102 |
|
| 103 |
-
```
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
total_updates
|
| 107 |
-
signal
|
| 108 |
-
vertex_id_type
|
| 109 |
-
timestamp_type
|
| 110 |
-
directed
|
| 111 |
-
weight_type
|
| 112 |
```
|
| 113 |
|
| 114 |
-
|
|
|
|
| 115 |
|
| 116 |
-
```
|
| 117 |
-
|
|
|
|
| 118 |
```
|
| 119 |
|
| 120 |
-
|
|
|
|
|
|
|
|
|
|
| 121 |
|
| 122 |
```text
|
| 123 |
-
|
| 124 |
-
info = 1 deletion
|
| 125 |
```
|
| 126 |
|
| 127 |
-
|
| 128 |
-
|
|
|
|
| 129 |
|
| 130 |
See the complete
|
| 131 |
[binary format specification](https://github.com/wheatman/GraphTide/blob/main/IO/README.md).
|
| 132 |
|
| 133 |
-
## Validation
|
| 134 |
-
|
| 135 |
-
Validate a binary graph with:
|
| 136 |
-
|
| 137 |
-
```bash
|
| 138 |
-
cd GraphTide-code
|
| 139 |
-
python -m pybinding.validate /path/to/dataset.bin
|
| 140 |
-
```
|
| 141 |
-
|
| 142 |
-
For an update graph, the optional stateful check verifies the
|
| 143 |
-
insertion/deletion sequence:
|
| 144 |
-
|
| 145 |
-
```bash
|
| 146 |
-
python -m pybinding.validate /path/to/dataset.bin \
|
| 147 |
-
--check-update-sequence
|
| 148 |
-
```
|
| 149 |
-
|
| 150 |
## Contributing a Dataset
|
| 151 |
|
| 152 |
-
|
| 153 |
-
datasets. Providing the original parser is encouraged but not
|
| 154 |
-
required.
|
| 155 |
|
| 156 |
Before uploading a large file, open a
|
| 157 |
[New dataset proposal](https://github.com/wheatman/GraphTide/issues/new?template=new-dataset.yml)
|
| 158 |
-
describing
|
| 159 |
-
|
| 160 |
-
- the source, citation, and license;
|
| 161 |
-
- signal/update and directed/undirected properties;
|
| 162 |
-
- vertex and edge-event semantics;
|
| 163 |
-
- timestamp unit;
|
| 164 |
-
- cleaning decisions; and
|
| 165 |
-
- approximate dataset size.
|
| 166 |
|
| 167 |
-
After the
|
| 168 |
-
|
| 169 |
-
1. Convert the data to the GraphTide binary format.
|
| 170 |
-
2. Run the validator.
|
| 171 |
-
3. Upload the `.bin` file to this repository as a pull request.
|
| 172 |
-
4. Link the Hugging Face pull request from the GitHub proposal.
|
| 173 |
-
|
| 174 |
-
For a signal graph:
|
| 175 |
|
| 176 |
```bash
|
| 177 |
hf auth login
|
|
@@ -183,16 +191,11 @@ hf upload DynamicGraphsProvider/GraphTide \
|
|
| 183 |
--commit-message "Add DATASET_ID dynamic graph"
|
| 184 |
```
|
| 185 |
|
| 186 |
-
Use `update_graphs/DATASET_ID.bin` for an update graph
|
|
|
|
| 187 |
|
| 188 |
See the complete
|
| 189 |
[contribution guidelines](https://github.com/wheatman/GraphTide/blob/main/CONTRIBUTING.md).
|
| 190 |
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
Accepted datasets are maintained as versioned Hugging Face revisions.
|
| 194 |
-
Corrections or refreshed snapshots should be submitted through a new
|
| 195 |
-
proposal and pull request.
|
| 196 |
-
|
| 197 |
-
For questions or dataset proposals, use the
|
| 198 |
[GraphTide issue tracker](https://github.com/wheatman/GraphTide/issues).
|
|
|
|
| 9 |
# The GraphTide Real-World Dynamic Graph Datasets
|
| 10 |
|
| 11 |
GraphTide is a collection of large-scale, real-world dynamic graph
|
| 12 |
+
datasets with authentic temporal information. It supports experimental
|
| 13 |
+
evaluation of streaming graph algorithms, dynamic graph systems, and
|
| 14 |
temporal graph analysis.
|
| 15 |
|
| 16 |
+
Source code, I/O and validation tools, and documentation are available
|
| 17 |
+
in the [GraphTide GitHub repository](https://github.com/wheatman/GraphTide).
|
|
|
|
| 18 |
|
| 19 |
## Graph Types
|
| 20 |
|
| 21 |
+
- **Signal graphs** record timestamped interactions, such as
|
| 22 |
+
transactions, comments, commits, and trips.
|
|
|
|
|
|
|
| 23 |
- **Update graphs** record explicit edge insertions and deletions,
|
| 24 |
allowing the graph state to be reconstructed over time.
|
| 25 |
|
| 26 |
+
Files are organized as:
|
| 27 |
|
| 28 |
```text
|
| 29 |
signal_graphs/ Timestamped edge-event streams
|
| 30 |
update_graphs/ Explicit edge insertion/deletion streams
|
| 31 |
```
|
| 32 |
|
| 33 |
+
## Datasets
|
| 34 |
+
|
| 35 |
+
All currently released graphs are unweighted. `Unique Edges` denotes
|
| 36 |
+
the number of distinct endpoint pairs, while `Events` denotes the
|
| 37 |
+
number of temporal signals or updates.
|
| 38 |
+
|
| 39 |
+
### Signal Graphs
|
| 40 |
+
|
| 41 |
+
| Dataset | Domain | Vertices | Unique Edges | Events | Timestamps | Unit | Directed |
|
| 42 |
+
|:---|:---|---:|---:|---:|---:|:---|:---:|
|
| 43 |
+
| [ia-online-ads-criteo](signal_graphs/ia-online-ads-criteo.bin) | Advertisement | 15,336,555 | 15,170,743 | 15,995,634 | 6,456,934 | seconds | No |
|
| 44 |
+
| [soc-bitcoin](signal_graphs/soc-bitcoin.bin) | Blockchain | 24,575,382 | 86,063,840 | 122,948,162 | 19,444,110 | seconds | No |
|
| 45 |
+
| [btc_stream_unweighted](signal_graphs/btc_stream_unweighted.bin) | Blockchain | 30,532,588 | 114,720,659 | 179,563,152 | 358,055 | seconds | No |
|
| 46 |
+
| [ethereum](signal_graphs/ethereum.bin) | Blockchain | 78,945,641 | 236,100,055 | 781,489,512 | 10,200,000 | seconds | Yes |
|
| 47 |
+
| [organization](signal_graphs/org.bin) | Collaboration | 23,309,109 | 38,081,253 | 192,051,799 | 27 | year | No |
|
| 48 |
+
| [venue](signal_graphs/ven.bin) | Collaboration | 64,482,050 | 64,405,068 | 64,698,700 | 27 | year | No |
|
| 49 |
+
| [publication](signal_graphs/pub.bin) | Collaboration | 144,435,257 | 375,925,058 | 378,459,524 | 27 | year | No |
|
| 50 |
+
| [coauthor](signal_graphs/coa.bin) | Collaboration | 31,547,264 | 656,908,420 | 3,032,478,219 | 27 | year | No |
|
| 51 |
+
| [reference](signal_graphs/ref.bin) | Collaboration | 71,129,632 | 1,138,706,757 | 1,138,706,757 | 27 | year | No |
|
| 52 |
+
| [semantic-scholar](signal_graphs/semantic_scholar_sorted.bin) | Collaboration | 125,738,070 | 2,587,951,493 | 2,587,951,493 | 229 | year | Yes |
|
| 53 |
+
| [rec-amazon-ratings](signal_graphs/rec-amazon-ratings.bin) | Recommendation | 2,146,057 | 5,743,258 | 5,838,041 | 3,329 | seconds | No |
|
| 54 |
+
| [rec-amz-Sports-and-Outdoors](signal_graphs/rec-amz-Sports-and-Outdoors.bin) | Recommendation | 2,469,419 | 3,268,695 | 3,268,695 | 4,786 | seconds | No |
|
| 55 |
+
| [rec-amz-Cell-Phones-and-Acc](signal_graphs/rec-amz-Cell-Phones-and-Acc.bin) | Recommendation | 2,580,723 | 3,447,249 | 3,447,249 | 4,724 | seconds | No |
|
| 56 |
+
| [rec-amz-CDs-and-Vinyl](signal_graphs/rec-amz-CDs-and-Vinyl.bin) | Recommendation | 2,064,957 | 3,749,004 | 3,749,004 | 6,041 | seconds | No |
|
| 57 |
+
| [rec-amz-Home-and-Kitchen](signal_graphs/rec-amz-Home-and-Kitchen.bin) | Recommendation | 2,921,853 | 4,253,926 | 4,253,926 | 5,202 | seconds | No |
|
| 58 |
+
| [rec-amz-Movies-and-TV](signal_graphs/rec-amz-Movies-and-TV.bin) | Recommendation | 2,289,561 | 4,607,047 | 4,607,047 | 6,004 | seconds | No |
|
| 59 |
+
| [rec-amz-Clothing-Shoes-Jewelry](signal_graphs/rec-amz-Clothing-Shoes-Jewelry.bin) | Recommendation | 4,253,272 | 5,748,920 | 5,748,920 | 4,209 | seconds | No |
|
| 60 |
+
| [rec-amz-Electronics](signal_graphs/rec-amz-Electronics.bin) | Recommendation | 4,677,698 | 7,824,482 | 7,824,482 | 5,489 | seconds | No |
|
| 61 |
+
| [rec-amz-Books](signal_graphs/rec-amz-Books.bin) | Recommendation | 10,356,390 | 22,507,155 | 22,507,155 | 6,296 | seconds | No |
|
| 62 |
+
| [copresence-Thiers13](signal_graphs/copresence-Thiers13.bin) | Social | 328 | 43,496 | 18,613,039 | 8,938 | seconds | No |
|
| 63 |
+
| [soc-youtube-growth](signal_graphs/soc-youtube-growth.bin) | Social | 3,223,589 | 9,376,594 | 12,223,774 | 203 | seconds | No |
|
| 64 |
+
| [sx-stackoverflow](signal_graphs/sx-stackoverflow.bin) | Social | 2,584,164 | 28,183,518 | 47,903,266 | 41,484,769 | seconds | No |
|
| 65 |
+
| [soc-flickr-growth](signal_graphs/soc-flickr-growth.bin) | Social | 2,302,925 | 33,140,017 | 33,140,017 | 134 | seconds | No |
|
| 66 |
+
| [bluesky](signal_graphs/bluesky.bin) | Social | 1,873,159 | 52,417,090 | 250,624,500 | 528,924 | seconds | No |
|
| 67 |
+
| [reddit](signal_graphs/reddit.bin) | Social | 74,000,011 | 746,954,361 | 8,989,320,299 | 168,851,154 | seconds | No |
|
| 68 |
+
| [llvm](signal_graphs/llvm.bin) | Software | 243,737 | 1,019,582 | 2,453,587 | 526,032 | seconds | No |
|
| 69 |
+
| [linux](signal_graphs/linux.bin) | Software | 193,269 | 1,078,218 | 2,838,279 | 1,192,006 | seconds | No |
|
| 70 |
+
| [nyc_taxi_yellow](signal_graphs/nyc_yellow_taxi.bin) | Transportation | 265 | 63,692 | 1,371,194,911 | 346,991,031 | seconds | Yes |
|
| 71 |
+
| [flight_opensky](signal_graphs/flight_opensky.bin) | Transportation | 18,257 | 2,380,394 | 62,582,273 | 45,835,674 | seconds | Yes |
|
| 72 |
+
|
| 73 |
+
An additional `ia-online-ads-criteo-attrs.bin` variant is also
|
| 74 |
+
available in `signal_graphs/`.
|
| 75 |
+
|
| 76 |
+
### Update Graphs
|
| 77 |
+
|
| 78 |
+
| Dataset | Domain | Vertices | Unique Edges | Events | Timestamps | Unit | Directed |
|
| 79 |
+
|:---|:---|---:|---:|---:|---:|:---|:---:|
|
| 80 |
+
| [wikipedia](update_graphs/wikipedia.bin) | Web | 62,489,082 | 401,854,218 | 1,294,550,620 | 183,259,984 | seconds | No |
|
| 81 |
+
| [central-america](update_graphs/central-america.bin) | Road | 4,454,638 | 6,468,206 | 10,661,854 | 1,354,927 | seconds | Yes |
|
| 82 |
+
| [australia-oceania](update_graphs/australia-oceania.bin) | Road | 8,232,884 | 13,204,266 | 20,619,707 | 2,577,810 | seconds | Yes |
|
| 83 |
+
| [south-america](update_graphs/south-america.bin) | Road | 26,944,705 | 43,659,791 | 71,807,857 | 6,686,033 | seconds | Yes |
|
| 84 |
+
| [africa](update_graphs/africa.bin) | Road | 43,817,014 | 65,355,044 | 95,425,505 | 8,085,311 | seconds | Yes |
|
| 85 |
+
| [north-america](update_graphs/north-america.bin) | Road | 112,771,288 | 170,000,577 | 258,236,950 | 29,048,546 | seconds | Yes |
|
| 86 |
+
| [asia](update_graphs/asia.bin) | Road | 124,486,147 | 187,177,810 | 280,092,215 | 24,095,945 | seconds | Yes |
|
| 87 |
+
| [europe](update_graphs/europe.bin) | Road | 169,942,207 | 267,341,689 | 441,068,613 | 57,207,306 | seconds | Yes |
|
| 88 |
+
| [planet](update_graphs/planet.bin) | Road | 485,492,757 | 745,319,813 | 1,165,712,593 | 117,089,898 | seconds | Yes |
|
| 89 |
|
| 90 |
## Download
|
| 91 |
|
|
|
|
| 115 |
The complete collection is large, so downloading individual files is
|
| 116 |
recommended.
|
| 117 |
|
| 118 |
+
## Reading and Validation
|
| 119 |
|
| 120 |
+
Install the GraphTide tools:
|
| 121 |
|
| 122 |
```bash
|
| 123 |
git clone https://github.com/wheatman/GraphTide.git GraphTide-code
|
| 124 |
python -m pip install -e ./GraphTide-code
|
| 125 |
```
|
| 126 |
|
| 127 |
+
Read a header or load a graph:
|
| 128 |
|
| 129 |
```python
|
| 130 |
+
from pybinding import read_header, read_bin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
|
| 132 |
+
path = "GraphTide-data/signal_graphs/soc-youtube-growth.bin"
|
|
|
|
|
|
|
|
|
|
| 133 |
|
| 134 |
+
header = read_header(path)
|
| 135 |
+
header, data = read_bin(path)
|
|
|
|
| 136 |
```
|
| 137 |
|
| 138 |
Large datasets should be processed with the streaming C++ I/O
|
| 139 |
interface rather than loaded completely into memory.
|
| 140 |
|
| 141 |
+
Validate a binary graph:
|
|
|
|
|
|
|
| 142 |
|
| 143 |
+
```bash
|
| 144 |
+
cd GraphTide-code
|
| 145 |
+
python -m pybinding.validate /path/to/dataset.bin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
```
|
| 147 |
|
| 148 |
+
For an update graph, the optional stateful check also validates the
|
| 149 |
+
insertion/deletion sequence:
|
| 150 |
|
| 151 |
+
```bash
|
| 152 |
+
python -m pybinding.validate /path/to/dataset.bin \
|
| 153 |
+
--check-update-sequence
|
| 154 |
```
|
| 155 |
|
| 156 |
+
## Binary Format
|
| 157 |
+
|
| 158 |
+
Each file contains a 32-byte little-endian header followed by tightly
|
| 159 |
+
packed records:
|
| 160 |
|
| 161 |
```text
|
| 162 |
+
src, dst, [timestamp], [weight], [info]
|
|
|
|
| 163 |
```
|
| 164 |
|
| 165 |
+
The header specifies the graph type, direction, data types, number of
|
| 166 |
+
vertices, unique edges, and temporal records. For update graphs,
|
| 167 |
+
`info=0` denotes insertion and `info=1` denotes deletion.
|
| 168 |
|
| 169 |
See the complete
|
| 170 |
[binary format specification](https://github.com/wheatman/GraphTide/blob/main/IO/README.md).
|
| 171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
## Contributing a Dataset
|
| 173 |
|
| 174 |
+
Providing the original parser is encouraged but not required.
|
|
|
|
|
|
|
| 175 |
|
| 176 |
Before uploading a large file, open a
|
| 177 |
[New dataset proposal](https://github.com/wheatman/GraphTide/issues/new?template=new-dataset.yml)
|
| 178 |
+
describing the source, license, graph semantics, timestamps, cleaning
|
| 179 |
+
decisions, and approximate size.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
|
| 181 |
+
After approval, validate the graph and upload it through a Hugging Face
|
| 182 |
+
pull request:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
|
| 184 |
```bash
|
| 185 |
hf auth login
|
|
|
|
| 191 |
--commit-message "Add DATASET_ID dynamic graph"
|
| 192 |
```
|
| 193 |
|
| 194 |
+
Use `update_graphs/DATASET_ID.bin` for an update graph, and link the
|
| 195 |
+
Hugging Face pull request from the original GitHub proposal.
|
| 196 |
|
| 197 |
See the complete
|
| 198 |
[contribution guidelines](https://github.com/wheatman/GraphTide/blob/main/CONTRIBUTING.md).
|
| 199 |
|
| 200 |
+
For questions, use the
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 201 |
[GraphTide issue tracker](https://github.com/wheatman/GraphTide/issues).
|