testing refactored graphs