Skip to content

Commit acfee07

Browse files
authored
Merge pull request #83 from hmdsefi/dev
using pointer receiver for edge methods
2 parents 95dd474 + 1802088 commit acfee07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graph.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ func (e *Edge[T]) OtherVertex(v T) *Vertex[T] {
167167
}
168168

169169
// Source returns edge source vertex
170-
func (e Edge[T]) Source() *Vertex[T] {
170+
func (e *Edge[T]) Source() *Vertex[T] {
171171
return e.source
172172
}
173173

174174
// Destination returns edge dest vertex
175-
func (e Edge[T]) Destination() *Vertex[T] {
175+
func (e *Edge[T]) Destination() *Vertex[T] {
176176
return e.dest
177177
}
178178

0 commit comments

Comments
 (0)