zadt 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/zadt/AbstractDataTypes/Graph/face_graph.rb +4 -6
- data/lib/zadt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ada672cf055b26e5255eabb53ec8bb8c13428330
|
4
|
+
data.tar.gz: 55d215e115f5cba93b15bb770620e1e4c07d4097
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b9a3600bce768416801c549bde1ca73f0ba0e7efd636a84e63522e70c4d1cfd8b22fc872f279d080b1671cec3aa565be931e79fa7e57e9aba62d34009db047f
|
7
|
+
data.tar.gz: 0d7cd82210643aed5eda2ea704052431b7d4ead067e9a7e2103c4f628c10ac1780f30750ab1968006807e577c6097a1adc7f43619e31207977a07d5d93b232d0
|
data/README.md
CHANGED
@@ -20,9 +20,11 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
Zadt::ADT::help will return a list of objects in the collection, as well as a brief description of each type.
|
24
24
|
|
25
|
-
I also made a "help" function for each Data Type. Type
|
25
|
+
I also made a "help" function for each Data Type. Type Zadt::StackQueue.help get a list of functions for the StackQueue, and so on.
|
26
|
+
|
27
|
+
And don't forget to require 'zadt' at the top!
|
26
28
|
|
27
29
|
### MinMaxStackQueue
|
28
30
|
|
@@ -77,7 +77,6 @@ module Zadt
|
|
77
77
|
# a vertex with the new face
|
78
78
|
def add_attached_face(vertex_array, num_edges)
|
79
79
|
# Make the vertices into a line
|
80
|
-
# p vertex_array
|
81
80
|
vertex_line = make_vertex_line(vertex_array)
|
82
81
|
# This finds the "ends" of the vertex line
|
83
82
|
end_vertices = [vertex_line.first, vertex_line.last]
|
@@ -87,7 +86,6 @@ module Zadt
|
|
87
86
|
vertices_to_make = num_edges - vertex_array.length
|
88
87
|
edges_to_make = vertices_to_make + 1
|
89
88
|
|
90
|
-
vert_ref = []
|
91
89
|
# Make new vertices
|
92
90
|
vert_ref = Array.new(vertices_to_make) {Vertex.new}
|
93
91
|
|
@@ -98,10 +96,10 @@ module Zadt
|
|
98
96
|
edge_ref << make_connection(vert_ref[vert_id], vert_ref[vert_id + 1])
|
99
97
|
end
|
100
98
|
# Connect "ends" of new vertices to "ends" of vertex line (making a circuit)
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
99
|
+
# Connect "first" of new vertices to "last end" of old ones
|
100
|
+
edge_ref << make_connection(vert_ref.first, end_vertices.last)
|
101
|
+
# Connect "last" of new vertices to "first end" of old ones
|
102
|
+
edge_ref << make_connection(vert_ref.last, end_vertices.first)
|
105
103
|
|
106
104
|
# Add edges from vertex_line to edge_ref
|
107
105
|
(vertex_line.length - 1).times do |vert_id|
|
data/lib/zadt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zadt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Zagorski
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|