// NewWeightedGraph create a new empty weighted graph
NewWeightedGraph create a new empty weighted graph
// NewWeightedGraph create a new empty weighted graph
func NewWeightedGraph(nodeCount int, directed bool, newGraphFunc func(int, bool) graph.Graph) *WeightedGraph {
	g := &WeightedGraph{newGraphFunc(nodeCount, directed),
		map[graph.EdgeID]Weight{}}
	return g
}
func NewWeightedGraph ( nodeCount int , directed bool , newGraphFunc func ( int , bool ) graph . Graph ) * WeightedGraph { g := & WeightedGraph { newGraphFunc ( nodeCount , directed ) , map [ graph . EdgeID ] Weight { } } return g }
NewWeightedGraph create a new empty weighted graph
NewWeightedGraph create a new empty weighted graph