Skip to content

Commit

Permalink
added linux kernel example
Browse files Browse the repository at this point in the history
  • Loading branch information
ArlindNocaj committed Jul 28, 2015
1 parent 78dd81f commit 3d3251e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Clone a copy of the git repo by running:
```
git clone --recursive https://github.com/ArlindNocaj/Voronoi-Treemap-Library.git
```

Make sure you have Java and Gradle installed (tested with Java 7 and Gradle 2.4):
``
java -version
Expand Down Expand Up @@ -121,34 +120,28 @@ when using the following code (see ``kn.uni.voronoitreemap.interfaces.Sample1.ja
data.addLink("README.md", "project");
data.addLink("file001", "project");
data.setRoot("project");

data.addLink("folder1", "project");
data.addLink("file011", "folder1");
data.addLink("file012", "folder1");

data.addLink("subfolder1", "folder1");
data.addLink("file111", "subfolder1");
data.addLink("file112", "subfolder1");
data.addLink("...", "subfolder1");

data.addLink("folder2", "folder1");
data.addLink("file021", "folder2");
data.addLink("file022", "folder2");

data.addLink("folder3", "project");
data.addLink("file031", "folder3");
data.addLink("file032", "folder3");
data.addLink("file033", "folder3");
data.addLink("file034", "folder3");
data.addLink("file035", "folder3");
data.addLink("file036", "folder3");
// data.setWeight("file036", 4);// increase cell size (leafs only)


// increases the size of the corresponding cell
// data.setWeight("file036", 4);

// VoronoiCore.setDebugMode(); //shows iteration process
VoronoiTreemap treemap = new VoronoiTreemap();
// VoronoiCore.setDebugMode(); //shows iteration process
treemap.setRootPolygon(rootPolygon);
treemap.setTreeData(data);
treemap.setCancelOnMaxIteration(true);
Expand All @@ -164,6 +157,12 @@ when using the following code (see ``kn.uni.voronoitreemap.interfaces.Sample1.ja
treemap.computeLocked();
```

Example linux kernel package hierarchy
-----
The folder structure of the linux kernel source (https://github.com/torvalds/linux) with over 50k elements is shown in the following Voronoi treemap visualization:
![linux kernel package hierarchy](https://github.com/ArlindNocaj/Voronoi-Treemap-Library/raw/master/examples/linux-kernel.png)


License
------------------------

Expand Down

0 comments on commit 3d3251e

Please sign in to comment.