graphmaker not working, working on stack of connected components