diff options
author | Patrick Simianer <p@simianer.de> | 2014-02-25 17:23:26 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-02-25 17:23:26 +0100 |
commit | 47fe94c4addff8a3719998a32a0423662e9eccd2 (patch) | |
tree | 35e2dced15b1d9e14ab6671f867bb7934d64a701 /test/dag | |
parent | 1320a05f94a57855f1d69f2644e56213e702d224 (diff) |
hypergraphs => v0.4
Diffstat (limited to 'test/dag')
-rw-r--r-- | test/dag/example.json | 45 | ||||
-rw-r--r-- | test/dag/simple.json | 25 |
2 files changed, 70 insertions, 0 deletions
diff --git a/test/dag/example.json b/test/dag/example.json new file mode 100644 index 0000000..3763359 --- /dev/null +++ b/test/dag/example.json @@ -0,0 +1,45 @@ +{ + +"nodes": +[ + {"label":"0"}, + {"label":"7"}, + {"label":"5"}, + {"label":"3"}, + {"label":"11"}, + {"label":"8"}, + {"label":"2"}, + {"label":"9"}, + {"label":"10"}, + {"label":"100"} +], + +"edges": +[ + { "tail":"0", "head":"7", "weight":"0.1" }, + { "tail":"0", "head":"5", "weight":"0.1" }, + { "tail":"0", "head":"3", "weight":"0.3" }, + + { "tail":"7", "head":"11", "weight":"0.5" }, + { "tail":"7", "head":"8", "weight":"0.3" }, + + { "tail":"5", "head":"11", "weight":"0.5" }, + + { "tail":"3", "head":"8", "weight":"0.1" }, + { "tail":"3", "head":"10", "weight":"0.1" }, + + { "tail":"11", "head":"2", "weight":"0.2" }, + { "tail":"11", "head":"9", "weight":"0.2" }, + { "tail":"11", "head":"10", "weight":"0.3" }, + + { "tail":"8", "head":"9", "weight":"0.3" }, + + { "tail":"2", "head":"100", "weight":"0.1" }, + + { "tail":"9", "head":"100", "weight":"0.1" }, + + { "tail":"10", "head":"100", "weight":"0.1" } +] + +} + diff --git a/test/dag/simple.json b/test/dag/simple.json new file mode 100644 index 0000000..16a2ef0 --- /dev/null +++ b/test/dag/simple.json @@ -0,0 +1,25 @@ +{ + +"nodes": +[ + {"label":"0"}, + {"label":"7"}, + {"label":"5"}, + {"label":"6"}, + {"label":"100"} +], + +"arcs": +[ + { "tail":"0", "head":"7", "weight":"0.1" }, + { "tail":"0", "head":"5", "weight":"0.1" }, + + { "tail":"7", "head":"100", "weight":"0.9" }, + + { "tail":"5", "head":"6", "weight":"0.3" }, + + { "tail":"6", "head":"100", "weight":"0.3" } +] + +} + |