@types = $session->getRelationTypes( $class )
The getRelationTypes() function returns a list of type numbers for the relationships which are returned by the getRelationNames() call.
@types = $session->getRelationTypes( "Router" );
The section $type, @types on page 72 describes the possible data types.