Skip to content

Commit

Permalink
added 2 new samples
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzaislam101 committed Aug 4, 2024
1 parent aeb25ad commit 4ea187d
Show file tree
Hide file tree
Showing 3 changed files with 372 additions and 1 deletion.
4 changes: 3 additions & 1 deletion demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
Expand Down
213 changes: 213 additions & 0 deletions demo/samples/bom.graphml
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
<graph>
<node xmlns="" id="n0">
<data type="data" key="label">p1</data>
<data type="data" key="level">3</data>
<data type="data" key="isDirected">1</data>
<data type="position" key="x">160</data>
<data type="position" key="y">0</data>
</node>
<node xmlns="" id="n2">
<data type="data" key="label">p4</data>
<data type="data" key="level">1</data>
<data type="data" key="isDirected">1</data>
<data type="position" key="x">129.4501001030391</data>
<data type="position" key="y">101</data>
</node>
<node xmlns="" id="n3">
<data type="data" key="label">p2</data>
<data type="data" key="level">3</data>
<data type="data" key="isDirected">1</data>
<data type="position" key="x">73.00502933435845</data>
<data type="position" key="y">101</data>
</node>
<node xmlns="" id="n12">
<data type="data" key="label">p3</data>
<data type="data" key="level">2</data>
<data type="data" key="isDirected">1</data>
<data type="position" key="x">190.54989989696097</data>
<data type="position" key="y">101</data>
</node>
<node xmlns="" id="n14">
<data type="data" key="label">p7</data>
<data type="data" key="level">3</data>
<data type="data" key="isDirected">1</data>
<data type="position" key="x">106.04965448252862</data>
<data type="position" key="y">202</data>
</node>
<node xmlns="" id="n6">
<data type="data" key="label">p5</data>
<data type="data" key="level">0</data>
<data type="data" key="isDirected">1</data>
<data type="position" key="x">246.99497066564157</data>
<data type="position" key="y">101</data>
</node>
<node xmlns="" id="n17">
<data type="data" key="label">p6</data>
<data type="data" key="level">2</data>
<data type="data" key="isDirected">1</data>
<data type="position" key="x">213.95034551747136</data>
<data type="position" key="y">202</data>
</node>
<node xmlns="" id="n11">
<data type="data" key="label">p6</data>
<data type="data" key="level">3</data>
<data type="data" key="isDirected">1</data>
<data type="position" key="x">160</data>
<data type="position" key="y">202</data>
</node>
<node xmlns="" id="p-932">
<data type="data" key="label"> </data>
<data type="data" key="isParent">true</data>
<data type="position" key="x">-160.2669645628893</data>
<data type="position" key="y">18.9831596263914</data>
<graph id="p-932:">
<node id="Michael">
<data type="data" key="label">Michael</data>
<data type="position" key="x">-96.96305755827983</data>
<data type="position" key="y">6.793590020006853</data>
</node>
<node id="R3">
<data type="data" key="label">R3</data>
<data type="position" key="x">-223.57087156749878</data>
<data type="position" key="y">-4.9407927418231665</data>
</node>
<node id="A3">
<data type="data" key="label">A3</data>
<data type="position" key="x">-167.36935412926005</data>
<data type="position" key="y">59.90711199460598</data>
</node>
</graph>
</node>
<node xmlns="" id="p-875">
<data type="data" key="label"> </data>
<data type="data" key="isParent">true</data>
<data type="position" key="x">-85.14027162099737</data>
<data type="position" key="y">208.58608109385568</data>
<graph id="p-875:">
<node id="p-784">
<data type="data" key="label">R2</data>
<data type="position" key="x">-42.61433739822486</data>
<data type="position" key="y">255.06842529662134</data>
</node>
<node id="p-60">
<data type="data" key="label">Emily</data>
<data type="position" key="x">-132.16620584376986</data>
<data type="position" key="y">218.6300788256754</data>
</node>
<node id="p-775">
<data type="data" key="label">A2</data>
<data type="position" key="x">-50.64312560368755</data>
<data type="position" key="y">179.10373689109005</data>
</node>
</graph>
</node>
<node xmlns="" id="p-689">
<data type="data" key="label">l3</data>
<data type="position" key="x">0</data>
<data type="position" key="y">0</data>
</node>
<node xmlns="" id="p-154">
<data type="data" key="label"> </data>
<data type="data" key="isParent">true</data>
<data type="position" key="x">374.57384973946944</data>
<data type="position" key="y">191.29330649747456</data>
<graph id="p-154:">
<node id="p-918">
<data type="data" key="label">l2</data>
<data type="position" key="x">324.85712277487374</data>
<data type="position" key="y">247.03963709115865</data>
</node>
<node id="p-745">
<data type="data" key="label">George</data>
<data type="position" key="x">424.2905767040651</data>
<data type="position" key="y">211.2188897129407</data>
</node>
<node id="p-876">
<data type="data" key="label">A1</data>
<data type="position" key="x">415.64418940587444</data>
<data type="position" key="y">152.5469759037905</data>
</node>
</graph>
</node>
<node xmlns="" id="p-860">
<data type="data" key="label"> </data>
<data type="data" key="isParent">true</data>
<data type="position" key="x">433.86336264134746</data>
<data type="position" key="y">-21.77838049364978</data>
<graph id="p-860:">
<node id="p-787">
<data type="data" key="label">Joe</data>
<data type="position" key="x">402.6746084585887</data>
<data type="position" key="y">-13.58718004001373</data>
</node>
<node id="p-774">
<data type="data" key="label">R1</data>
<data type="position" key="x">465.05211682410624</data>
<data type="position" key="y">-12.969580947285834</data>
</node>
</graph>
</node>
<node xmlns="" id="p-47">
<data type="data" key="label"> </data>
<data type="data" key="isParent">true</data>
<data type="position" key="x">115.4910303401167</data>
<data type="position" key="y">319.7539177848771</data>
<graph id="p-47:">
<node id="p-895">
<data type="data" key="label">l1</data>
<data type="position" key="x">148.2237822546952</data>
<data type="position" key="y">330.41551460942475</data>
</node>
<node id="p-981">
<data type="data" key="label">Kelly</data>
<data type="position" key="x">82.75827842553818</data>
<data type="position" key="y">326.09232096032946</data>
</node>
</graph>
</node>
<node xmlns="" id="p-764">
<data type="data" key="label">p6</data>
<data type="position" key="x">287.183578118472</data>
<data type="position" key="y">14.20477913274164</data>
</node>
<edge xmlns="" id="n12-n11" source="n12" target="n11" >
</edge>
<edge xmlns="" id="n0-n12" source="n0" target="n12" ></edge>
<edge xmlns="" id="n2-n17" source="n2" target="n17" ></edge>
<edge xmlns="" id="n2-n11" source="n2" target="n11" ></edge>
<edge xmlns="" id="n0-n2" label="hehe" source="n0" target="n2" ></edge>
<edge xmlns="" id="n0-n3" source="n0" target="n3" ></edge>
<edge xmlns="" id="n0-n6" source="n0" target="n6" ></edge>
<edge xmlns="" id="n2-n14" source="n2" target="n14" ></edge>
<edge xmlns="" id="n12-n17" source="n12" target="n17" ></edge>
<edge xmlns="" id="n12-n14" source="n12" target="n14" ></edge>
<edge xmlns="" id="Michael-A3" source="Michael" target="A3" >
<!-- <data type="data" key="label">assigned</data> -->
</edge>
<edge xmlns="" id="R3-A3" source="R3" target="A3" >
<!-- <data type="data" key="label">for</data> -->
</edge>
<edge xmlns="" id="Michael-R3" source="Michael" target="R3" >
<!-- <data type="data" key="label">completed</data> -->
</edge>
<edge xmlns="" id="p-784-p-775" source="p-784" target="p-775" ></edge>
<edge xmlns="" id="p-784-p-60" source="p-784" target="p-60" ></edge>
<edge xmlns="" id="p-60-p-775" source="p-60" target="p-775" ></edge>
<edge xmlns="" id="Michael-p-689" source="Michael" target="p-689" ></edge>
<edge xmlns="" id="p-775-p-689" source="p-775" target="p-689" ></edge>
<edge xmlns="" id="n3-p-689" source="n3" target="p-689" ></edge>
<edge xmlns="" id="p-745-p-876" source="p-745" target="p-876" ></edge>
<edge xmlns="" id="p-918-p-745" source="p-918" target="p-745" ></edge>
<edge xmlns="" id="p-918-p-876" source="p-918" target="p-876" ></edge>
<edge xmlns="" id="p-787-p-774" source="p-787" target="p-774" ></edge>
<edge xmlns="" id="p-895-p-981" source="p-895" target="p-981" ></edge>
<edge xmlns="" id="n17-p-918" source="n17" target="p-918" ></edge>
<edge xmlns="" id="p-876-p-787" source="p-876" target="p-787" ></edge>
<edge xmlns="" id="n6-p-764" source="n6" target="p-764" ></edge>
<edge xmlns="" id="p-895-p-764" source="p-895" target="p-764" ></edge>
</graph>
</graphml>
156 changes: 156 additions & 0 deletions demo/samples/paper.graphml
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
<graph>
<node xmlns="" id="nwtN_4451c335-4668-4f8d-9f71-274aa2e6ab06">
<data type="data" key="bbox">[object Object]</data>
<data type="data" key="class">unspecified entity</data>
<data type="data" key="label">User</data>
<data type="data" key="statesandinfos" />
<data type="data" key="language">PD</data>
<data type="data" key="border-width">1.25</data>
<data type="data" key="border-color">#555555</data>
<data type="data" key="background-color">#b2dfee</data>
<data type="data" key="background-opacity">1</data>
<data type="data" key="background-image-opacity">1</data>
<data type="data" key="text-wrap">wrap</data>
<data type="data" key="font-size">11</data>
<data type="data" key="font-family">Helvetica</data>
<data type="data" key="font-style">normal</data>
<data type="data" key="font-weight">normal</data>
<data type="data" key="color">#000</data>
<data type="data" key="ports" />
<data type="data" key="infoboxCalculated">true</data>
<data type="data" key="auxunitlayouts">[object Object]</data>
<data type="position" key="x">-8703.74709017548</data>
<data type="position" key="y">0</data>
<data type="data" key="isDirected">1</data>
</node>
<node xmlns="" id="nwtN_37220ed2-0cbe-4d1f-9cac-07dfb11d6eda">
<data type="data" key="bbox">[object Object]</data>
<data type="data" key="class">unspecified entity</data>
<data type="data" key="label">Author</data>
<data type="data" key="statesandinfos" />
<data type="data" key="language">PD</data>
<data type="data" key="border-width">1.25</data>
<data type="data" key="border-color">#555555</data>
<data type="data" key="background-color">#b2dfee</data>
<data type="data" key="background-opacity">1</data>
<data type="data" key="background-image-opacity">1</data>
<data type="data" key="text-wrap">wrap</data>
<data type="data" key="font-size">11</data>
<data type="data" key="font-family">Helvetica</data>
<data type="data" key="font-style">normal</data>
<data type="data" key="font-weight">normal</data>
<data type="data" key="color">#000</data>
<data type="data" key="ports" />
<data type="data" key="infoboxCalculated">true</data>
<data type="data" key="auxunitlayouts">[object Object]</data>
<data type="position" key="x">-8626.099356637475</data>
<data type="position" key="y">112.45351367599017</data>
<data type="data" key="isDirected">1</data>
</node>
<node xmlns="" id="nwtN_8d99e7af-1b2f-4605-a381-ce3127b6199a">
<data type="data" key="bbox">[object Object]</data>
<data type="data" key="class">unspecified entity</data>
<data type="data" key="label">Committee Member</data>
<data type="data" key="statesandinfos" />
<data type="data" key="language">PD</data>
<data type="data" key="border-width">1.25</data>
<data type="data" key="border-color">#555555</data>
<data type="data" key="background-color">#b2dfee</data>
<data type="data" key="background-opacity">1</data>
<data type="data" key="background-image-opacity">1</data>
<data type="data" key="text-wrap">wrap</data>
<data type="data" key="font-size">11</data>
<data type="data" key="font-family">Helvetica</data>
<data type="data" key="font-style">normal</data>
<data type="data" key="font-weight">normal</data>
<data type="data" key="color">#000</data>
<data type="data" key="ports" />
<data type="data" key="infoboxCalculated">true</data>
<data type="data" key="auxunitlayouts">[object Object]</data>
<data type="position" key="x">-8787.421882317316</data>
<data type="position" key="y">97.80372440973633</data>
<data type="data" key="isDirected">1</data>
</node>
<node xmlns="" id="cb4">
<data type="data" key="label">Reviewer</data>
<data type="position" key="x">-8852.714169466379</data>
<data type="position" key="y">215.55236186872256</data>
<data type="data" key="isDirected">1</data>
</node>
<node xmlns="" id="cb3">
<data type="data" key="label">Chair</data>
<data type="position" key="x">-8721.186910165203</data>
<data type="position" key="y">225.91735764620472</data>
<data type="data" key="isDirected">1</data>
</node>
<node xmlns="" id="unip1">
<data type="data" key="label">Conference</data>
<data type="position" key="x">-8935.400055093629</data>
<data type="position" key="y">373.02542060735044</data>
</node>
<node xmlns="" id="unip2">
<data type="data" key="label">Review</data>
<data type="position" key="x">-8839.894827181766</data>
<data type="position" key="y">323.26413731862556</data>
</node>
<node xmlns="" id="unip3">
<data type="data" key="label">Paper</data>
<data type="position" key="x">-8603.317163433749</data>
<data type="position" key="y">295.3365745978521</data>
</node>
<node xmlns="" id="unip4">
<data type="data" key="label">Proceedings</data>
<data type="position" key="x">-8746.220758947718</data>
<data type="position" key="y">411.34796851209717</data>
</node>
<node xmlns="" id="unip5">
<data type="data" key="label">Organization Committee</data>
<data type="position" key="x">-8985.76248966512</data>
<data type="position" key="y">237.30428944145805</data>
</node>
<edge xmlns="" id="edge1691389044773" source="unip4" target="unip3" />
<edge xmlns="" id="nwtN_37220ed2-0cbe-4d1f-9cac-07dfb11d6eda-cb3"
source="nwtN_37220ed2-0cbe-4d1f-9cac-07dfb11d6eda" target="cb3" />
<edge xmlns="" id="unip3-unip2" source="unip3" target="unip2" />
<edge xmlns="" id="nwtN_37220ed2-0cbe-4d1f-9cac-07dfb11d6eda-unip3"
source="nwtN_37220ed2-0cbe-4d1f-9cac-07dfb11d6eda" target="unip3" />
<edge xmlns="" id="cb4-unip2" source="cb4" target="unip2" />
<edge xmlns="" id="edge1691389153869" source="unip5" target="unip1" />
<edge xmlns="" id="nwtN_8d99e7af-1b2f-4605-a381-ce3127b6199a-cb4"
source="nwtN_8d99e7af-1b2f-4605-a381-ce3127b6199a" target="cb4" />
<edge xmlns="" id="edge1691389032013" source="unip1" target="unip4" />
<edge xmlns="" id="nwtN_8d99e7af-1b2f-4605-a381-ce3127b6199a-unip5"
source="nwtN_8d99e7af-1b2f-4605-a381-ce3127b6199a" target="unip5" />
<edge xmlns="" id="cb4-unip3" source="cb4" target="unip3" />
<edge xmlns="" id="nwtE_45a21af1-4dec-41c7-ba69-dafcff42a64e"
source="nwtN_4451c335-4668-4f8d-9f71-274aa2e6ab06"
target="nwtN_37220ed2-0cbe-4d1f-9cac-07dfb11d6eda">
<data key="class">production</data>
<data key="bendPointPositions" />
<data key="language">PD</data>
<data key="line-color">#555555</data>
<data key="width">1.25</data>
<data key="cardinality">0</data>
<data key="portsource">nwtN_4451c335-4668-4f8d-9f71-274aa2e6ab06</data>
<data key="porttarget">nwtN_37220ed2-0cbe-4d1f-9cac-07dfb11d6eda</data>
</edge>
<edge xmlns="" id="nwtE_d28e1f77-50d0-4dd8-83cc-9aa7753ec703"
source="nwtN_4451c335-4668-4f8d-9f71-274aa2e6ab06"
target="nwtN_8d99e7af-1b2f-4605-a381-ce3127b6199a">
<data key="class">production</data>
<data key="bendPointPositions" />
<data key="language">PD</data>
<data key="line-color">#555555</data>
<data key="width">1.25</data>
<data key="cardinality">0</data>
<data key="portsource">nwtN_4451c335-4668-4f8d-9f71-274aa2e6ab06</data>
<data key="porttarget">nwtN_8d99e7af-1b2f-4605-a381-ce3127b6199a</data>
</edge>
<edge xmlns="" id="nwtN_8d99e7af-1b2f-4605-a381-ce3127b6199a-cb3"
source="nwtN_8d99e7af-1b2f-4605-a381-ce3127b6199a" target="cb3" />
</graph>
</graphml>

0 comments on commit 4ea187d

Please sign in to comment.