Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How I can get adjacency matrix? #1

Open
awaismalik1x opened this issue Aug 13, 2021 · 1 comment
Open

How I can get adjacency matrix? #1

awaismalik1x opened this issue Aug 13, 2021 · 1 comment

Comments

@awaismalik1x
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants