func CheckValidTopology(t string) error {
	if t != TopologyNetwork && t != TopologyDirectedNetwork && t != TopologyDependency && t != TopologyTree {
		return errors.NewBadParameterError("topolgy", t).Expected(TopologyNetwork + "|" + TopologyDirectedNetwork + "|" + TopologyDependency + "|" + TopologyTree)
	}
	return nil
}
// CheckValidTopology returns nil if the given topology is valid;
// otherwise a BadParameterError is returned.
CheckValidTopology returns nil if the given topology is valid;
otherwise a BadParameterError is returned.
// CheckValidTopology returns nil if the given topology is valid ; // otherwise a BadParameterError is returned .
func CheckValidTopology(t string) error {
	if t != TopologyNetwork && t != TopologyDirectedNetwork && t != TopologyDependency && t != TopologyTree {
		return errors.NewBadParameterError("topolgy", t).Expected(TopologyNetwork + "|" + TopologyDirectedNetwork + "|" + TopologyDependency + "|" + TopologyTree)
	}
	return nil
}
func CheckValidTopology ( t string ) error { if t != TopologyNetwork && t != TopologyDirectedNetwork && t != TopologyDependency && t != TopologyTree { return errors . NewBadParameterError ( " " , t ) . Expected ( TopologyNetwork + " " + TopologyDirectedNetwork + " " + TopologyDependency + " " + TopologyTree ) } return nil }
CheckValidTopology returns nil if the given topology is valid;
otherwise a BadParameterError is returned.
CheckValidTopology returns nil if the given topology is valid ; otherwise a BadParameterError is returned .