Created
July 1, 2017 21:41
-
-
Save oatsandsugar/bf5104dd3a13170c98a45a7ec5d91997 to your computer and use it in GitHub Desktop.
Example ADG for "Tables and objects and graphs, oh my!"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Test 19: Structure by deduction |[BOSS LEVEL]| no row or column is complete | |
val BOSSA1: AbstractDataGraph = { | |
val nodes = Map( | |
0 -> DataNode(0, 0, None, None), | |
1 -> DataNode(1, 0, Some("A"), Some(AbstractLong(1))), | |
2 -> DataNode(2, 1, None, Some(AbstractLong(2))), | |
3 -> DataNode(3, 2, None, None), | |
4 -> DataNode(4, 3, Some("C"), None), | |
5 -> DataNode(5, 4, Some("D"), None) | |
) | |
val edges: Map[Int, Set[Int]] = Map( | |
0 -> Set(1,2,3,4,5) | |
) | |
AbstractDataGraph(nodes, edges, root = Some(0)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment