public State(VertexCoverGraph graph, HashSet <string> onStartingShore, HashSet <string> onFinishingShore, int alcuinNumber, bool isFinishShore, State previousState = null, string[] movement = null) { Graph = graph; OnStartingShore = new HashSet <string>(onStartingShore); OnFinishingShore = new HashSet <string>(onFinishingShore); AlcuinNumber = alcuinNumber; IsFinishShore = isFinishShore; PreviousState = previousState; Movement = movement; }
public State(VertexCoverGraph graph, string[] onStartingShore, string[] onFinishingShore, int alcuinNumber, bool isFinishShore) : this(graph, new HashSet <string>(onStartingShore), new HashSet <string>(onFinishingShore), alcuinNumber, isFinishShore) { }