// NewAdjacencyMatrixGraph create a adjacency list based graph with nodes
NewAdjacencyMatrixGraph create a adjacency list based graph with nodes
// NewAdjacencyMatrixGraph create a adjacency list based graph with nodes
func NewAdjacencyMatrixGraph(nodeCount int, directed bool) Graph {
	g := adjacencyMatrixGraph{[][]bool{}, directed}
	for i := 0; i < nodeCount; i++ {
		g.adjMatrix = append(g.adjMatrix, make([]bool, nodeCount, nodeCount))
	}
	return g
}
func NewAdjacencyMatrixGraph ( nodeCount int , directed bool ) Graph { g := adjacencyMatrixGraph { [ ] [ ] bool { } , directed } for i := 0 ; i < nodeCount ; i ++ { g . adjMatrix = append ( g . adjMatrix , make ( [ ] bool , nodeCount , nodeCount ) ) } return g }
NewAdjacencyMatrixGraph create a adjacency list based graph with nodes
NewAdjacencyMatrixGraph create a adjacency list based graph with nodes