From d9d72e06db07087aa54401fae8b259f0c4ccd649 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Wed, 29 Jan 2014 19:22:56 +0100 Subject: first usable version, name change => nlp_ruby --- test/dags/example.json | 45 +++++++++++++++++++++++++++++++++++++++++++++ test/dags/simple.json | 25 +++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 test/dags/example.json create mode 100644 test/dags/simple.json (limited to 'test/dags') diff --git a/test/dags/example.json b/test/dags/example.json new file mode 100644 index 0000000..3763359 --- /dev/null +++ b/test/dags/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/dags/simple.json b/test/dags/simple.json new file mode 100644 index 0000000..16a2ef0 --- /dev/null +++ b/test/dags/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" } +] + +} + -- cgit v1.2.3