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

What's the purpose of empty graph in padding? #23

Closed
EngineerKhan opened this issue Nov 5, 2021 · 1 comment
Closed

What's the purpose of empty graph in padding? #23

EngineerKhan opened this issue Nov 5, 2021 · 1 comment

Comments

@EngineerKhan
Copy link

Hi!

I came across the padding function (pad_with_graphs) and have a naive question: why do we use an empty graph there?
Also, we specify only the number of edges (and nodes). Which algorithm determines their incidence (i.e. which edge would connect which pair of nodes)? Thanks a lot.

@jg8610
Copy link
Contributor

jg8610 commented May 12, 2022

Hey!

Good question - we connect all edges to a single node (the first one) and then all other nodes are disconnected.

We use this because then with unpad_with_graphs we know how to remove the padding graph.

@jg8610 jg8610 closed this as completed Sep 6, 2022
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