Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/arnauddri/algorithms
/ NewUndirected
Function
NewUndirected
data-structures/graph/undirected_graph.go:7–15 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
5
}
6
7
func
NewUndirected() *UnGraph {
8
return
&UnGraph{
9
graph{
10
edgesCount: 0,
11
edges: make(
map
[VertexId]
map
[VertexId]int),
12
isDirected: false,
13
},
14
}
15
}
Callers
1
TestUndirectedGraph
Function · 0.85
Calls
no outgoing calls
Tested by
1
TestUndirectedGraph
Function · 0.68