package placementcost

import 

func clusterExactlyTwoExternalConnectedNodes( *layoutgraph.Cluster) (,  *layoutgraph.Node,  bool) {
	 := .Nodes[0].Graph
	 := false
	for ,  := range .EdgeAbductions {
		var  *layoutgraph.Node
		switch {
		case .OriginallyFrom == nil && .OriginallyTo != nil:
			// edge coming into cluster
			if .CurrentFrom.TopLeft != nil && .CurrentFrom.Graph ==  {
				 = .CurrentFrom
			}
		case .OriginallyTo == nil && .OriginallyFrom != nil:
			// edge exiting from cluster
			if .CurrentTo.TopLeft != nil && .CurrentTo.Graph ==  {
				 = .CurrentTo
			}
		}
		if  == nil ||  ==  ||  ==  {
			continue
		}
		if  == nil {
			 = 
			continue
		}
		if  == nil {
			 = 
			continue
		}
		 = true
	}
	return , , ! &&  != nil &&  != nil
}