Extract graph config to external functions