
create edge type if not exists connect "connect"
;

create class if not exists /test() with namespace="test"
;

delete from /test/cypher with version
/**
onerror(continue)
noerrinfo()
**/
;

delete from /test/cypher1 with version
/**
onerror(continue)
noerrinfo()
**/
;

delete from /test/cypher2 with version
/**
onerror(continue)
noerrinfo()
**/
;

delete from /test/cypher3 with version
/**
onerror(continue)
noerrinfo()
**/
;

delete from /test/cypher4 with version
/**
onerror(continue)
noerrinfo()
**/
;

delete from /test/cypher5 with version
/**
onerror(continue)
noerrinfo()
**/
;

delete from /test/cypher6 with version
/**
onerror(continue)
noerrinfo()
**/
;

delete from /test/cypher7 with version
/**
onerror(continue)
noerrinfo()
**/
;

delete from /test/cypher8 with version
/**
onerror(continue)
noerrinfo()
**/
;

delete from /test/cypher9 with version
/**
onerror(continue)
noerrinfo()
**/
;

drop class if exists /test/cypher
;

drop class if exists /test/cypher9
;

drop class if exists /test/cypher8
;

drop class if exists /test/cypher7
;

drop class if exists /test/cypher5
;

drop class if exists /test/cypher6
;

drop class if exists /test/cypher4
;

drop class if exists /test/cypher3
;

drop class if exists /test/cypher2
;

drop class if exists /test/cypher1
;

/**
sleep(1s)
**/
;

create edge type if not exists test.connect
;

create class if not exists /test/cypher (
		name		varchar,		
		keys(name)
	)with key=manu and nickname='cypher'
;

create class if not exists /test/cypher1 (
		name		varchar,		
		keys(name)
	)with key=manu and nickname='cypher1'
;

create class if not exists /test/cypher2 (

		name		varchar,		
		keys(name)
	)with key=manu and nickname='cypher2'
;

create class if not exists /test/cypher3 (

		name		varchar,		
		keys(name)
	)with key=manu and nickname='cypher3'
;

create class if not exists /test/cypher4 (

		name		varchar,		
		keys(name)
	)with key=manu and nickname='cypher4'
;

create class if not exists /test/cypher5 (

		name		varchar,		
		keys(name)
	)with key=manu and nickname='cypher5'
;

create class if not exists /test/cypher6 (

		name		varchar,		
		keys(name)
	)with key=manu and nickname='cypher6'
;

create class if not exists /test/cypher7 (

		name		varchar,		
		keys(name)
	)with key=manu and nickname='cypher7'
;

create class if not exists /test/cypher8 (

		name		varchar,		
		keys(name)
	)with key=manu and nickname='cypher8'
;

create class if not exists /test/cypher9 (

		name		varchar,		
		keys(name)
	)with key=manu and nickname='cypher9'
;
