Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/arnauddri/algorithms
/ CheckVertex
Method
CheckVertex
data-structures/graph/graph.go:60–64 ·
view source on GitHub ↗
(vertex VertexId)
Source
from the content-addressed store, hash-verified
58
}
59
60
func
(g *graph) CheckVertex(vertex VertexId) bool {
61
_, exists := g.edges[vertex]
62
63
return
exists
64
}
65
66
func
(g *graph) TouchVertex(vertex VertexId) {
67
if
_, ok := g.edges[vertex]; !ok {
Callers
2
AddEdge
Method · 0.95
TestUndirectedGraph
Function · 0.80
Calls
no outgoing calls
Tested by
1
TestUndirectedGraph
Function · 0.64