With the appropriate storage backend running a new titan graph can be initialised via:
graph = TitanFactory.open("config.properties");
Wehere config.properties defines several configurations relevant to the storage backend. Titan provides some sample configs in its downloadable package...