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

[WIP] Graph types and graph convnet demo #526

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

duvenaud
Copy link
Contributor

There are three common representations of graphs:

  • Adjacency matrices n=>n=>Bool: An n by n Boolean matrix where True means an edge.
  • Edge lists List (n & n): A list of pairs (n & n) meaning an edge from left to right.
  • Adjacency or child lists n=>List n: A table of lists of each node's children.

This demo has functions for all 6 combinations of casting from one
representation to another. All can in principle be paralellized by the compiler due to the use of the
accum monoid.

I also implemented a basic graph convnet.

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

Successfully merging this pull request may close these issues.

1 participant