AmitRoy7781 / SST-GNN

[PAKDD 2021] SST-GNN: Simplified Spatio-temporal Traffic forecasting model using Graph Neural Network
https://link.springer.com/chapter/10.1007%2F978-3-030-75768-7_8
26 stars 12 forks source link

How I can get adjacency matrix? #1

Open awaismalik1x opened 3 years ago

awaismalik1x commented 3 years ago

Hi, Amit,

I really got inspired by your paper (SST-GNN: Simplified Spatio-temporal Traffic forecasting model using Graph Neural Network, 21), I have local traffic trajectories dateset. Please help me to convert into adjacency matrix. Here is the look of dataset.

dataset

Please guide me How I can get the adjacency matrix of this data for implementing GCN/GNN for travel time prediction

AmitRoy7781 commented 9 months ago

We actually worked on the dataset where an adjacency matrix was given, you can convert the latitude and longitude of start and end location into supernode (by some clustering algorithm say dbscan/k-means) and add edges where there is a trip from one supernode to another supernode