mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: remove empty comments (#14986)
This commit is contained in:
parent
02d675ab67
commit
1a49db4ea1
@ -85,7 +85,7 @@ fn departure_priority<T>(mut prior_queue []T) int {
|
|||||||
// give a NODE v, return a list with all adjacents
|
// give a NODE v, return a list with all adjacents
|
||||||
// Take care, only positive EDGES
|
// Take care, only positive EDGES
|
||||||
fn all_adjacents<T>(g [][]T, v int) []int {
|
fn all_adjacents<T>(g [][]T, v int) []int {
|
||||||
mut temp := []int{} //
|
mut temp := []int{}
|
||||||
for i in 0 .. (g.len) {
|
for i in 0 .. (g.len) {
|
||||||
if g[v][i] > 0 {
|
if g[v][i] > 0 {
|
||||||
temp << i
|
temp << i
|
||||||
@ -147,7 +147,7 @@ fn dijkstra(g [][]int, s int) {
|
|||||||
if dist[w] > new_dist {
|
if dist[w] > new_dist {
|
||||||
dist[w] = new_dist
|
dist[w] = new_dist
|
||||||
updating_priority(mut pq_queue, w, dist[w])
|
updating_priority(mut pq_queue, w, dist[w])
|
||||||
path[w] = v //
|
path[w] = v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ fn departure_priority<T>(mut prior_queue []T) int {
|
|||||||
// give a NODE v, return a list with all adjacents
|
// give a NODE v, return a list with all adjacents
|
||||||
// Take care, only positive EDGES
|
// Take care, only positive EDGES
|
||||||
fn all_adjacents<T>(g [][]T, v int) []int {
|
fn all_adjacents<T>(g [][]T, v int) []int {
|
||||||
mut temp := []int{} //
|
mut temp := []int{}
|
||||||
for i in 0 .. (g.len) {
|
for i in 0 .. (g.len) {
|
||||||
if g[v][i] > 0 {
|
if g[v][i] > 0 {
|
||||||
temp << i
|
temp << i
|
||||||
|
Loading…
Reference in New Issue
Block a user