Skip to content

Instantly share code, notes, and snippets.

@Synthetica9
Created October 25, 2020 20:00
Show Gist options
  • Save Synthetica9/eb68f602a34fd6802a1c4ee92a87d2f9 to your computer and use it in GitHub Desktop.
Save Synthetica9/eb68f602a34fd6802a1c4ee92a87d2f9 to your computer and use it in GitHub Desktop.
G = Graph({
0: [3, 5],
1: [4, 5, 6],
2: [4, 6],
3: [0, 6],
4: [1, 2, 5],
5: [0, 1, 4, 6],
6: [1, 2, 3, 5]
})
print(G.is_prime())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment