Exemplo n.º 1
0
// Getting path value
// If path value is nil then just calculating it , otherwise just returning existing path
func GetValue(p *tree_graph.Path) (final_path *big.Int, err tree_lib.TreeError) {
	if p.Path == nil {
		final_path, err = p.CalculatePath()
	}
	final_path = p.Path
	return
}