diff options
Diffstat (limited to 'lib/graph.py')
-rw-r--r-- | lib/graph.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/graph.py b/lib/graph.py index a32c3be..16c31c8 100644 --- a/lib/graph.py +++ b/lib/graph.py @@ -50,7 +50,7 @@ from . import great_circle_arc from . import vector # Set to True to enable some sanity checks -DEBUG = False +DEBUG = True class Graph: @@ -65,7 +65,7 @@ class Graph: """ class Node: - """ + """ A `~Graph.Node` represents a single point, connected by an arbitrary number of `~Graph.Edge` objects to other `~Graph.Node` objects. """ @@ -267,6 +267,7 @@ class Graph: node : `~Graph.Node` instance The new node """ + point = vector.normalize_vector(*point) new_node = self.Node(point, source_polygons) # Don't add nodes that already exist. Update the existing |