Connecting to a specific graph

Hello,

I have a multiple graph like below
multi-graph

And i have a java application to communicate with the graph.
I want to know if i can specify the graph that i want to use or i have to use the default graph (because when i connect to the database with url: bolt://host:7687 i use the default graph).

Regards,
Mahdi.

Changing the database is done via the SessionConfig.

try ( Session session = driver.session( SessionConfig.forDatabase( "examples" ) ) ) {
...

or

SessionConfig sessionConfig = SessionConfig.builder()
        .withDatabase( "examples" )
        .withDefaultAccessMode( AccessMode.READ )
        .build();
try ( Session session = driver.session( sessionConfig ) ) {
...

Thank you, it works with the SessionConfig.forDatabase()