diff --git a/demo/index.js b/demo/index.js index 9c70493..d0ddc49 100644 --- a/demo/index.js +++ b/demo/index.js @@ -10,6 +10,8 @@ async function pageLoaded() { var select = document.getElementById("experimentGraphs"); var options = []; options.push("python-call-stack"); + options.push("paper"); + options.push("bom"); for (let i = 1;i<7;i++){ options.push("sample"+i); } @@ -261,7 +263,7 @@ async function runLayout() { loadGraphMLFromStr(resp); return; } - else if(select.selectedIndex < 2){ + else if(select.selectedIndex < 4){ var resp = await fetch('./samples/'+selectedGraph+'.graphml'); resp = await resp.text(); loadGraphMLFromStr(resp); diff --git a/demo/samples/bom.graphml b/demo/samples/bom.graphml new file mode 100644 index 0000000..925f26d --- /dev/null +++ b/demo/samples/bom.graphml @@ -0,0 +1,213 @@ + + + + + p1 + 3 + 1 + 160 + 0 + + + p4 + 1 + 1 + 129.4501001030391 + 101 + + + p2 + 3 + 1 + 73.00502933435845 + 101 + + + p3 + 2 + 1 + 190.54989989696097 + 101 + + + p7 + 3 + 1 + 106.04965448252862 + 202 + + + p5 + 0 + 1 + 246.99497066564157 + 101 + + + p6 + 2 + 1 + 213.95034551747136 + 202 + + + p6 + 3 + 1 + 160 + 202 + + + + true + -160.2669645628893 + 18.9831596263914 + + + Michael + -96.96305755827983 + 6.793590020006853 + + + R3 + -223.57087156749878 + -4.9407927418231665 + + + A3 + -167.36935412926005 + 59.90711199460598 + + + + + + true + -85.14027162099737 + 208.58608109385568 + + + R2 + -42.61433739822486 + 255.06842529662134 + + + Emily + -132.16620584376986 + 218.6300788256754 + + + A2 + -50.64312560368755 + 179.10373689109005 + + + + + l3 + 0 + 0 + + + + true + 374.57384973946944 + 191.29330649747456 + + + l2 + 324.85712277487374 + 247.03963709115865 + + + George + 424.2905767040651 + 211.2188897129407 + + + A1 + 415.64418940587444 + 152.5469759037905 + + + + + + true + 433.86336264134746 + -21.77838049364978 + + + Joe + 402.6746084585887 + -13.58718004001373 + + + R1 + 465.05211682410624 + -12.969580947285834 + + + + + + true + 115.4910303401167 + 319.7539177848771 + + + l1 + 148.2237822546952 + 330.41551460942475 + + + Kelly + 82.75827842553818 + 326.09232096032946 + + + + + p6 + 287.183578118472 + 14.20477913274164 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/demo/samples/paper.graphml b/demo/samples/paper.graphml new file mode 100644 index 0000000..222351a --- /dev/null +++ b/demo/samples/paper.graphml @@ -0,0 +1,156 @@ + + + + + [object Object] + unspecified entity + User + + PD + 1.25 + #555555 + #b2dfee + 1 + 1 + wrap + 11 + Helvetica + normal + normal + #000 + + true + [object Object] + -8703.74709017548 + 0 + 1 + + + [object Object] + unspecified entity + Author + + PD + 1.25 + #555555 + #b2dfee + 1 + 1 + wrap + 11 + Helvetica + normal + normal + #000 + + true + [object Object] + -8626.099356637475 + 112.45351367599017 + 1 + + + [object Object] + unspecified entity + Committee Member + + PD + 1.25 + #555555 + #b2dfee + 1 + 1 + wrap + 11 + Helvetica + normal + normal + #000 + + true + [object Object] + -8787.421882317316 + 97.80372440973633 + 1 + + + Reviewer + -8852.714169466379 + 215.55236186872256 + 1 + + + Chair + -8721.186910165203 + 225.91735764620472 + 1 + + + Conference + -8935.400055093629 + 373.02542060735044 + + + Review + -8839.894827181766 + 323.26413731862556 + + + Paper + -8603.317163433749 + 295.3365745978521 + + + Proceedings + -8746.220758947718 + 411.34796851209717 + + + Organization Committee + -8985.76248966512 + 237.30428944145805 + + + + + + + + + + + + + production + + PD + #555555 + 1.25 + 0 + nwtN_4451c335-4668-4f8d-9f71-274aa2e6ab06 + nwtN_37220ed2-0cbe-4d1f-9cac-07dfb11d6eda + + + production + + PD + #555555 + 1.25 + 0 + nwtN_4451c335-4668-4f8d-9f71-274aa2e6ab06 + nwtN_8d99e7af-1b2f-4605-a381-ce3127b6199a + + + + \ No newline at end of file