Remove graph boundaries