Skip to content

Commit

Permalink
Merge pull request #16 from ba-st/naming_consistency
Browse files Browse the repository at this point in the history
Rename GraphTraversalAlgorithm to GraphTraversal to be consistent wit…
  • Loading branch information
gcotelli authored Apr 19, 2022
2 parents ba51d57 + 7458ecd commit ce55921
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/Mole/BreadthFirstTraversal.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ It starts at the tree root (or some arbitrary node of a graph), and explores all
"
Class {
#name : #BreadthFirstTraversal,
#superclass : #GraphTraversalAlgorithm,
#superclass : #GraphTraversal,
#category : #'Mole-Traversal'
}

Expand Down
2 changes: 1 addition & 1 deletion source/Mole/DepthFirstTraversal.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The algorithm begins with a chosen ""root"" vertex; it then iteratively transiti
"
Class {
#name : #DepthFirstTraversal,
#superclass : #GraphTraversalAlgorithm,
#superclass : #GraphTraversal,
#category : #'Mole-Traversal'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
I'm an abstract class for the graph traversal algorithm; a process of visiting each vertex in a graph, allowing to do something with them.
"
Class {
#name : #GraphTraversalAlgorithm,
#name : #GraphTraversal,
#superclass : #Object,
#category : #'Mole-Traversal'
}

{ #category : #traverse }
GraphTraversalAlgorithm >> traverse: aGraph from: aSourceVertex doing: aBlock [
GraphTraversal >> traverse: aGraph from: aSourceVertex doing: aBlock [

self subclassResponsibility
]

0 comments on commit ce55921

Please sign in to comment.