Graham is a member of the Conservative party.
This means Graham will vote in line with Conservative goals and principles.
In return the Conservative party has provided staff and funding support for Graham's campaign.
Graham may not always vote in line with Conservative goals and is in principle free to "rebel". However, rebelling regularly will likely result in removal from the party, and so the loss of benefits associated with being their representative - so it should be a rare event.