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

Check if graph is correct #24

Open
wires opened this issue Mar 4, 2016 · 1 comment
Open

Check if graph is correct #24

wires opened this issue Mar 4, 2016 · 1 comment

Comments

@wires
Copy link
Member

wires commented Mar 4, 2016

we want to make sure if two graphs described as edge lists are isomorphic.

1→2, 2→3, 1→3, 2→44→6, 6→1, 4→1, 6→3

with datascript JS example we can test this, like this

edge(e1, 1, 2).
edge(e2, 2, 3).
edge(e3, 1, 3).
edge(e4, 2, 4).
isWhatIWant(N1,N2,N3,N4,E1,E2,E3,E4) :- edge(E1,N1,N2), edge(E2,N2,N3),
   edge(E3,N1,N3), edge(E4,N2,N4), N1 != N2 != N3 != N4, E1 != E2 != E3 != E4.

but that doesn't cover all cases.. or does it?

@wires
Copy link
Member Author

wires commented Mar 4, 2016

wip on PR #23

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

1 participant