-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from skieffer/feasible-expansions
`libdialect:` Improve `Face::buildBestProjSeq()`
- Loading branch information
Showing
4 changed files
with
179 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
// Derived from http://www.topology-zoo.org/dataset.html | ||
0 449.0 -831.0 46.0 34.0 | ||
1 299.0 -923.0 41.0 34.0 | ||
2 523.5 -1015.0 29.0 34.0 | ||
3 311.0 -729.0 41.0 34.0 | ||
4 543.0 -463.0 158.0 34.0 | ||
5 366.0 -923.0 56.0 34.0 | ||
6 222.0 -463.0 20.0 34.0 | ||
7 564.0 -1015.0 20.0 34.0 | ||
8 462.0 -565.0 68.0 34.0 | ||
9 342.0 -247.0 20.0 34.0 | ||
10 467.0 -21.0 22.0 34.0 | ||
11 371.0 -391.0 22.0 34.0 | ||
12 252.0 -565.0 128.0 34.0 | ||
13 669.0 -923.0 74.0 34.0 | ||
14 55.0 -729.0 30.0 34.0 | ||
15 180.0 -1015.0 32.0 34.0 | ||
16 465.0 -247.0 74.0 34.0 | ||
17 418.5 -83.0 23.0 34.0 | ||
18 467.0 -83.0 22.0 34.0 | ||
19 513.0 -165.0 122.0 34.0 | ||
20 125.0 -923.0 51.0 34.0 | ||
21 605.5 -637.0 21.0 34.0 | ||
22 215.0 -923.0 92.0 34.0 | ||
23 575.0 -831.0 41.0 34.0 | ||
24 630.0 -565.0 68.0 34.0 | ||
25 533.0 -565.0 43.0 34.0 | ||
26 528.0 -391.0 32.0 34.0 | ||
27 653.0 -637.0 22.0 34.0 | ||
28 582.0 -247.0 128.0 34.0 | ||
29 610.5 -165.0 23.0 34.0 | ||
30 515.5 -83.0 21.0 34.0 | ||
31 593.0 -83.0 98.0 34.0 | ||
32 635.0 -831.0 38.0 34.0 | ||
33 515.0 -831.0 33.0 34.0 | ||
34 423.0 -463.0 50.0 34.0 | ||
35 408.0 -391.0 20.0 34.0 | ||
36 12.0 -729.0 20.0 34.0 | ||
37 225.0 -637.0 74.0 34.0 | ||
38 285.0 -831.0 86.0 34.0 | ||
39 611.5 -1015.0 21.0 34.0 | ||
40 459.0 -729.0 218.0 34.0 | ||
41 396.0 -1015.0 44.0 34.0 | ||
42 522.0 -637.0 44.0 34.0 | ||
43 345.0 -637.0 50.0 34.0 | ||
44 377.5 -165.0 21.0 34.0 | ||
45 143.0 -247.0 22.0 34.0 | ||
46 425.0 -165.0 22.0 34.0 | ||
47 585.0 -329.0 26.0 34.0 | ||
48 537.0 -329.0 26.0 34.0 | ||
49 345.0 -329.0 38.0 34.0 | ||
50 191.0 -247.0 22.0 34.0 | ||
51 228.0 -247.0 20.0 34.0 | ||
52 216.0 -329.0 164.0 34.0 | ||
53 276.5 -247.0 21.0 34.0 | ||
# | ||
0 40 | ||
1 38 | ||
2 13 | ||
3 43 | ||
4 8 | ||
4 12 | ||
4 16 | ||
4 24 | ||
4 25 | ||
4 26 | ||
4 28 | ||
4 40 | ||
4 47 | ||
5 15 | ||
5 38 | ||
5 40 | ||
5 41 | ||
6 12 | ||
7 13 | ||
8 34 | ||
8 42 | ||
8 43 | ||
9 49 | ||
10 18 | ||
11 34 | ||
12 34 | ||
12 37 | ||
12 38 | ||
12 49 | ||
12 52 | ||
13 38 | ||
13 39 | ||
13 40 | ||
14 37 | ||
15 37 | ||
16 19 | ||
16 44 | ||
16 46 | ||
16 52 | ||
17 19 | ||
18 19 | ||
19 28 | ||
19 30 | ||
19 31 | ||
20 38 | ||
21 24 | ||
22 38 | ||
23 40 | ||
24 27 | ||
24 28 | ||
26 48 | ||
28 29 | ||
28 47 | ||
28 48 | ||
28 49 | ||
32 40 | ||
33 40 | ||
34 35 | ||
36 37 | ||
37 38 | ||
38 40 | ||
40 41 | ||
40 42 | ||
40 43 | ||
45 52 | ||
50 52 | ||
51 52 | ||
52 53 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* vim: ts=4 sw=4 et tw=0 wm=0 | ||
* | ||
* libdialect - A library for computing DiAlEcT layouts: | ||
* D = Decompose/Distribute | ||
* A = Arrange | ||
* E = Expand/Emend | ||
* T = Transform | ||
* | ||
* Copyright (C) 2018 Monash University | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* See the file LICENSE.LGPL distributed with the library. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* Author(s): Steve Kieffer <http://skieffer.info> | ||
*/ | ||
|
||
#include "libdialect/commontypes.h" | ||
#include "libdialect/io.h" | ||
#include "libdialect/util.h" | ||
#include "libdialect/graphs.h" | ||
#include "libdialect/opts.h" | ||
#include "libdialect/logging.h" | ||
#include "libdialect/hola.h" | ||
|
||
using namespace dialect; | ||
|
||
int main(void) { | ||
Graph_SP graph = buildGraphFromTglfFile("graphs/" "special/Garr201001.tglf"); | ||
HolaOpts opts; | ||
std::string prefix = "hola_garr_"; | ||
bool debug = false; | ||
if (debug) doHOLA(*graph, opts, new Logger("output/", prefix, true, true)); | ||
else doHOLA(*graph, opts); | ||
writeStringToFile(graph->writeTglf(), "output/" + prefix + "layout.tglf"); | ||
writeStringToFile(graph->writeSvg(), "output/" "svg/" + prefix + "layout.svg"); | ||
} |