public bool Free() { if (status == VERTICE_STATUS.IN_WORK) { status = VERTICE_STATUS.FREE; return(true); } return(false); }
public bool Take() { if (status == VERTICE_STATUS.FREE) { status = VERTICE_STATUS.IN_WORK; return(true); } return(false); }