refactored startGraph method + create methods + setStyle methods