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

Writing Adjacency matrix to file #2

Open
GregorySchwing opened this issue Sep 30, 2023 · 1 comment
Open

Writing Adjacency matrix to file #2

GregorySchwing opened this issue Sep 30, 2023 · 1 comment

Comments

@GregorySchwing
Copy link

How would one extract the adjacency matrix that is generated from the toulouse dataset?

@davide-belli
Copy link
Owner

Hi Gregory,

You can look at toulouse-road-network-dataset/utils/utils.py:generate_datapoint() to see how each data point in the dataset is represented as the dataset is generated.
You can also check toulouse-road-network-dataset/dataset.py:load_dataset() to see how the datapoints are loaded to get the graph data structure used for experimentation.

The graphs are represented through the node features (XY coordinates) and adjacency matrix (connectivity among nodes). The default ordering is based on BFS, but the generated dataset should also contain a DFS-based ordering.

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