rubyfca 0.2.10 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +24 -3
- data/Gemfile +4 -0
- data/LICENSE +674 -20
- data/README.md +129 -0
- data/Rakefile +8 -51
- data/bin/rubyfca +61 -57
- data/lib/{ruby_graphviz.rb → rubyfca/ruby_graphviz.rb} +22 -22
- data/lib/rubyfca/version.rb +5 -0
- data/lib/rubyfca.rb +152 -139
- data/rubyfca.gemspec +20 -55
- data/samples/fca-source-result.png +0 -0
- data/samples/numbers-result-compact.png +0 -0
- data/samples/numbers-result.png +0 -0
- data/samples/numbers-source.png +0 -0
- data/samples/sample_01.svg +202 -0
- data/samples/sample_02.svg +178 -0
- data/samples/sample_03.svg +244 -0
- data/samples/xlsx-sample.png +0 -0
- data/test/rubyfca_test.rb +55 -4
- data/test/test_data_.csv +7 -0
- data/test/test_expected/test_result_01.svg +202 -0
- data/test/test_expected/test_result_02.svg +178 -0
- data/test/test_expected/test_result_03.svg +481 -0
- data/test/test_expected/test_result_04.svg +314 -0
- data/test/test_input/test_data.csv +7 -0
- data/test/{test_data.cxt → test_input/test_data.cxt} +5 -5
- data/test/test_input/test_data.xlsx +0 -0
- data/test/test_input/test_data_numbers.xlsx +0 -0
- data/test_data_numbers.svg +272 -0
- data/test_data_numbers_a.svg +272 -0
- metadata +107 -58
- data/README.rdoc +0 -45
- data/VERSION +0 -1
- data/lib/trollop.rb +0 -739
- data/test/test_helper.rb +0 -10
@@ -0,0 +1,178 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
3
|
+
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
4
|
+
<!-- Generated by graphviz version 8.0.5 (20230430.1635)
|
5
|
+
-->
|
6
|
+
<!-- Title: clattice Pages: 1 -->
|
7
|
+
<svg width="305pt" height="321pt"
|
8
|
+
viewBox="0.00 0.00 305.38 321.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
9
|
+
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 317)">
|
10
|
+
<title>clattice</title>
|
11
|
+
<polygon fill="white" stroke="none" points="-4,4 -4,-317 301.38,-317 301.38,4 -4,4"/>
|
12
|
+
<!-- c0 -->
|
13
|
+
<g id="node1" class="node">
|
14
|
+
<title>c0</title>
|
15
|
+
<polygon fill="white" stroke="none" points="170.25,-22.5 170.25,-45 195,-45 195,-22.5 170.25,-22.5"/>
|
16
|
+
<polygon fill="none" stroke="black" points="170.25,-22.5 170.25,-45 195,-45 195,-22.5 170.25,-22.5"/>
|
17
|
+
<text text-anchor="start" x="173.25" y="-28.7" font-family="Times,serif" font-size="14.00">     </text>
|
18
|
+
<polygon fill="white" stroke="none" points="170.25,0 170.25,-22.5 195,-22.5 195,0 170.25,0"/>
|
19
|
+
<polygon fill="none" stroke="black" points="170.25,0 170.25,-22.5 195,-22.5 195,0 170.25,0"/>
|
20
|
+
<text text-anchor="start" x="173.25" y="-6.2" font-family="Times,serif" font-size="14.00">     </text>
|
21
|
+
</g>
|
22
|
+
<!-- c1 -->
|
23
|
+
<g id="node2" class="node">
|
24
|
+
<title>c1</title>
|
25
|
+
<polygon fill="white" stroke="none" points="157.25,-156.5 157.25,-179 206,-179 206,-156.5 157.25,-156.5"/>
|
26
|
+
<polygon fill="none" stroke="black" points="157.25,-156.5 157.25,-179 206,-179 206,-156.5 157.25,-156.5"/>
|
27
|
+
<text text-anchor="start" x="160.25" y="-162.7" font-family="Times,serif" font-size="14.00">     </text>
|
28
|
+
<polygon fill="#ebebeb" stroke="none" points="157.25,-134 157.25,-156.5 206,-156.5 206,-134 157.25,-134"/>
|
29
|
+
<polygon fill="none" stroke="black" points="157.25,-134 157.25,-156.5 206,-156.5 206,-134 157.25,-134"/>
|
30
|
+
<text text-anchor="start" x="160.25" y="-140.2" font-family="Times,serif" font-size="14.00">Bonobo</text>
|
31
|
+
</g>
|
32
|
+
<!-- c1--c0 -->
|
33
|
+
<g id="edge1" class="edge">
|
34
|
+
<title>c1--c0</title>
|
35
|
+
<path fill="none" stroke="#999999" d="M181.79,-134.29C181.97,-109.66 182.28,-69.27 182.46,-44.66"/>
|
36
|
+
</g>
|
37
|
+
<!-- c2 -->
|
38
|
+
<g id="node3" class="node">
|
39
|
+
<title>c2</title>
|
40
|
+
<polygon fill="white" stroke="none" points="75.75,-89.5 75.75,-112 127.5,-112 127.5,-89.5 75.75,-89.5"/>
|
41
|
+
<polygon fill="none" stroke="black" points="75.75,-89.5 75.75,-112 127.5,-112 127.5,-89.5 75.75,-89.5"/>
|
42
|
+
<text text-anchor="start" x="78.75" y="-95.7" font-family="Times,serif" font-size="14.00">     </text>
|
43
|
+
<polygon fill="#ebebeb" stroke="none" points="75.75,-67 75.75,-89.5 127.5,-89.5 127.5,-67 75.75,-67"/>
|
44
|
+
<polygon fill="none" stroke="black" points="75.75,-67 75.75,-89.5 127.5,-89.5 127.5,-67 75.75,-67"/>
|
45
|
+
<text text-anchor="start" x="78.75" y="-73.2" font-family="Times,serif" font-size="14.00">Sparrow</text>
|
46
|
+
</g>
|
47
|
+
<!-- c2--c0 -->
|
48
|
+
<g id="edge2" class="edge">
|
49
|
+
<title>c2--c0</title>
|
50
|
+
<path fill="none" stroke="#999999" d="M127.25,-67.93C141.71,-56.33 159.11,-42.37 170.5,-33.23"/>
|
51
|
+
</g>
|
52
|
+
<!-- c3 -->
|
53
|
+
<g id="node4" class="node">
|
54
|
+
<title>c3</title>
|
55
|
+
<polygon fill="#dedede" stroke="none" points="88.5,-223.5 88.5,-246 126.75,-246 126.75,-223.5 88.5,-223.5"/>
|
56
|
+
<polygon fill="none" stroke="black" points="88.5,-223.5 88.5,-246 126.75,-246 126.75,-223.5 88.5,-223.5"/>
|
57
|
+
<text text-anchor="start" x="91.5" y="-229.7" font-family="Times,serif" font-size="14.00">flying</text>
|
58
|
+
<polygon fill="white" stroke="none" points="88.5,-201 88.5,-223.5 126.75,-223.5 126.75,-201 88.5,-201"/>
|
59
|
+
<polygon fill="none" stroke="black" points="88.5,-201 88.5,-223.5 126.75,-223.5 126.75,-201 88.5,-201"/>
|
60
|
+
<text text-anchor="start" x="91.5" y="-207.2" font-family="Times,serif" font-size="14.00">     </text>
|
61
|
+
</g>
|
62
|
+
<!-- c3--c1 -->
|
63
|
+
<g id="edge3" class="edge">
|
64
|
+
<title>c3--c1</title>
|
65
|
+
<path fill="none" stroke="#999999" d="M126.68,-205.76C136.02,-197.56 147.36,-187.59 157.32,-178.85"/>
|
66
|
+
</g>
|
67
|
+
<!-- c3--c2 -->
|
68
|
+
<g id="edge4" class="edge">
|
69
|
+
<title>c3--c2</title>
|
70
|
+
<path fill="none" stroke="#999999" d="M106.66,-201.29C105.54,-176.66 103.71,-136.27 102.59,-111.66"/>
|
71
|
+
</g>
|
72
|
+
<!-- c4 -->
|
73
|
+
<g id="node5" class="node">
|
74
|
+
<title>c4</title>
|
75
|
+
<polygon fill="#dedede" stroke="none" points="0,-156.5 0,-179 47.25,-179 47.25,-156.5 0,-156.5"/>
|
76
|
+
<polygon fill="none" stroke="black" points="0,-156.5 0,-179 47.25,-179 47.25,-156.5 0,-156.5"/>
|
77
|
+
<text text-anchor="start" x="3" y="-162.7" font-family="Times,serif" font-size="14.00">preying</text>
|
78
|
+
<polygon fill="#ebebeb" stroke="none" points="0,-134 0,-156.5 47.25,-156.5 47.25,-134 0,-134"/>
|
79
|
+
<polygon fill="none" stroke="black" points="0,-134 0,-156.5 47.25,-156.5 47.25,-134 0,-134"/>
|
80
|
+
<text text-anchor="start" x="3" y="-140.2" font-family="Times,serif" font-size="14.00">Eagle</text>
|
81
|
+
</g>
|
82
|
+
<!-- c4--c2 -->
|
83
|
+
<g id="edge5" class="edge">
|
84
|
+
<title>c4--c2</title>
|
85
|
+
<path fill="none" stroke="#999999" d="M47.03,-136C56.18,-128.37 66.71,-119.6 76.06,-111.8"/>
|
86
|
+
</g>
|
87
|
+
<!-- c5 -->
|
88
|
+
<g id="node6" class="node">
|
89
|
+
<title>c5</title>
|
90
|
+
<polygon fill="#dedede" stroke="none" points="6.38,-223.5 6.38,-246 52.88,-246 52.88,-223.5 6.38,-223.5"/>
|
91
|
+
<polygon fill="none" stroke="black" points="6.38,-223.5 6.38,-246 52.88,-246 52.88,-223.5 6.38,-223.5"/>
|
92
|
+
<text text-anchor="start" x="9.38" y="-229.7" font-family="Times,serif" font-size="14.00">talking</text>
|
93
|
+
<polygon fill="#ebebeb" stroke="none" points="6.38,-201 6.38,-223.5 52.88,-223.5 52.88,-201 6.38,-201"/>
|
94
|
+
<polygon fill="none" stroke="black" points="6.38,-201 6.38,-223.5 52.88,-223.5 52.88,-201 6.38,-201"/>
|
95
|
+
<text text-anchor="start" x="9.38" y="-207.2" font-family="Times,serif" font-size="14.00">Human</text>
|
96
|
+
</g>
|
97
|
+
<!-- c5--c4 -->
|
98
|
+
<g id="edge6" class="edge">
|
99
|
+
<title>c5--c4</title>
|
100
|
+
<path fill="none" stroke="#999999" d="M27.66,-201.22C26.99,-193.96 26.24,-185.85 25.57,-178.61"/>
|
101
|
+
</g>
|
102
|
+
<!-- c6 -->
|
103
|
+
<g id="node7" class="node">
|
104
|
+
<title>c6</title>
|
105
|
+
<polygon fill="#dedede" stroke="none" points="242.75,-89.5 242.75,-112 288.5,-112 288.5,-89.5 242.75,-89.5"/>
|
106
|
+
<polygon fill="none" stroke="black" points="242.75,-89.5 242.75,-112 288.5,-112 288.5,-89.5 242.75,-89.5"/>
|
107
|
+
<text text-anchor="start" x="245.75" y="-95.7" font-family="Times,serif" font-size="14.00">bird</text>
|
108
|
+
<polygon fill="#ebebeb" stroke="none" points="242.75,-67 242.75,-89.5 288.5,-89.5 288.5,-67 242.75,-67"/>
|
109
|
+
<polygon fill="none" stroke="black" points="242.75,-67 242.75,-89.5 288.5,-89.5 288.5,-67 242.75,-67"/>
|
110
|
+
<text text-anchor="start" x="245.75" y="-73.2" font-family="Times,serif" font-size="14.00">Ostrich</text>
|
111
|
+
</g>
|
112
|
+
<!-- c6--c0 -->
|
113
|
+
<g id="edge7" class="edge">
|
114
|
+
<title>c6--c0</title>
|
115
|
+
<path fill="none" stroke="#999999" d="M242.94,-70.74C227.39,-58.56 207.37,-42.88 194.76,-33"/>
|
116
|
+
</g>
|
117
|
+
<!-- c7 -->
|
118
|
+
<g id="node8" class="node">
|
119
|
+
<title>c7</title>
|
120
|
+
<polygon fill="#dedede" stroke="none" points="241.88,-156.5 241.88,-179 297.38,-179 297.38,-156.5 241.88,-156.5"/>
|
121
|
+
<polygon fill="none" stroke="black" points="241.88,-156.5 241.88,-179 297.38,-179 297.38,-156.5 241.88,-156.5"/>
|
122
|
+
<text text-anchor="start" x="244.88" y="-162.7" font-family="Times,serif" font-size="14.00">mammal</text>
|
123
|
+
<polygon fill="#ebebeb" stroke="none" points="241.88,-134 241.88,-156.5 297.38,-156.5 297.38,-134 241.88,-134"/>
|
124
|
+
<polygon fill="none" stroke="black" points="241.88,-134 241.88,-156.5 297.38,-156.5 297.38,-134 241.88,-134"/>
|
125
|
+
<text text-anchor="start" x="244.88" y="-140.2" font-family="Times,serif" font-size="14.00">Lion</text>
|
126
|
+
</g>
|
127
|
+
<!-- c7--c6 -->
|
128
|
+
<g id="edge8" class="edge">
|
129
|
+
<title>c7--c6</title>
|
130
|
+
<path fill="none" stroke="#999999" d="M268.32,-134.22C267.87,-126.96 267.37,-118.85 266.92,-111.61"/>
|
131
|
+
</g>
|
132
|
+
<!-- c8 -->
|
133
|
+
<g id="node9" class="node">
|
134
|
+
<title>c8</title>
|
135
|
+
<polygon fill="#dedede" stroke="none" points="169.25,-223.5 169.25,-246 194,-246 194,-223.5 169.25,-223.5"/>
|
136
|
+
<polygon fill="none" stroke="black" points="169.25,-223.5 169.25,-246 194,-246 194,-223.5 169.25,-223.5"/>
|
137
|
+
<text text-anchor="start" x="172.25" y="-229.7" font-family="Times,serif" font-size="14.00">ape</text>
|
138
|
+
<polygon fill="white" stroke="none" points="169.25,-201 169.25,-223.5 194,-223.5 194,-201 169.25,-201"/>
|
139
|
+
<polygon fill="none" stroke="black" points="169.25,-201 169.25,-223.5 194,-223.5 194,-201 169.25,-201"/>
|
140
|
+
<text text-anchor="start" x="172.25" y="-207.2" font-family="Times,serif" font-size="14.00">     </text>
|
141
|
+
</g>
|
142
|
+
<!-- c8--c1 -->
|
143
|
+
<g id="edge9" class="edge">
|
144
|
+
<title>c8--c1</title>
|
145
|
+
<path fill="none" stroke="#999999" d="M181.62,-201.22C181.62,-193.96 181.62,-185.85 181.62,-178.61"/>
|
146
|
+
</g>
|
147
|
+
<!-- c8--c7 -->
|
148
|
+
<g id="edge10" class="edge">
|
149
|
+
<title>c8--c7</title>
|
150
|
+
<path fill="none" stroke="#999999" d="M193.86,-213.46C206.23,-204.32 225.78,-189.88 241.92,-177.96"/>
|
151
|
+
</g>
|
152
|
+
<!-- c9 -->
|
153
|
+
<g id="node10" class="node">
|
154
|
+
<title>c9</title>
|
155
|
+
<polygon fill="white" stroke="none" points="95.25,-290.5 95.25,-313 120,-313 120,-290.5 95.25,-290.5"/>
|
156
|
+
<polygon fill="none" stroke="black" points="95.25,-290.5 95.25,-313 120,-313 120,-290.5 95.25,-290.5"/>
|
157
|
+
<text text-anchor="start" x="98.25" y="-296.7" font-family="Times,serif" font-size="14.00">     </text>
|
158
|
+
<polygon fill="white" stroke="none" points="95.25,-268 95.25,-290.5 120,-290.5 120,-268 95.25,-268"/>
|
159
|
+
<polygon fill="none" stroke="black" points="95.25,-268 95.25,-290.5 120,-290.5 120,-268 95.25,-268"/>
|
160
|
+
<text text-anchor="start" x="98.25" y="-274.2" font-family="Times,serif" font-size="14.00">     </text>
|
161
|
+
</g>
|
162
|
+
<!-- c9--c3 -->
|
163
|
+
<g id="edge11" class="edge">
|
164
|
+
<title>c9--c3</title>
|
165
|
+
<path fill="none" stroke="#999999" d="M107.62,-268.22C107.62,-260.96 107.62,-252.85 107.62,-245.61"/>
|
166
|
+
</g>
|
167
|
+
<!-- c9--c5 -->
|
168
|
+
<g id="edge12" class="edge">
|
169
|
+
<title>c9--c5</title>
|
170
|
+
<path fill="none" stroke="#999999" d="M95.44,-279.34C84.04,-269.85 66.72,-255.41 52.71,-243.74"/>
|
171
|
+
</g>
|
172
|
+
<!-- c9--c8 -->
|
173
|
+
<g id="edge13" class="edge">
|
174
|
+
<title>c9--c8</title>
|
175
|
+
<path fill="none" stroke="#999999" d="M119.84,-278.77C133.56,-266.72 155.67,-247.3 169.39,-235.25"/>
|
176
|
+
</g>
|
177
|
+
</g>
|
178
|
+
</svg>
|