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