// IterateAdjacencyNodes for/range on all adjacency nodes of current node,
// call IterateAction for each iterated node
IterateAdjacencyNodes for/range on all adjacency nodes of current node,
call IterateAction for each iterated node
// IterateAdjacencyNodes for / range on all adjacency nodes of current node // call IterateAction for each iterated node
func (g adjacencyMatrixGraph) IterateAdjacencyNodes(currNode NodeID, action IterateAction) {
	if !g.IsNodeValid(currNode) {
		return
	}
	for i, v := range g.adjMatrix[currNode] {
		if v {
			action(NodeID(i))
		}
	}
}
func ( g adjacencyMatrixGraph ) IterateAdjacencyNodes ( currNode NodeID , action IterateAction ) { if ! g . IsNodeValid ( currNode ) { return } for i , v := range g . adjMatrix [ currNode ] { if v { action ( NodeID ( i ) ) } } }
IterateAdjacencyNodes for/range on all adjacency nodes of current node,
call IterateAction for each iterated node
IterateAdjacencyNodes for / range on all adjacency nodes of current node call IterateAction for each iterated node