uarango.graph module

class uarango.graph.Graph[source]
add_edge_definition(collection_name, from_list, to_list)[source]

Add edge collection

add_vertex_collection(collection_name)[source]

Add vertex collection

all_keys(collection_name)[source]
create_edge(collection_name, data)[source]

Create an edge

Free style json body data = {

“_key” : “key1”, “_from” : “a/2781783”, “_to” : “b/2781736”

}

create_graph(collection_name, from_list, to_list)[source]

Create a graph

create_vertex(collection_name, data)[source]

Create a vertex

create_vertex_key(collection_name, data)[source]

Create a vertex and Get a vertex key

drop_graph()[source]

Drop a graph

get_edge(collection_name, edge_key)[source]

Get a edge

get_graph()[source]

Get a graph

get_vertex(collection_name, vertex_key)[source]

Get a vertex

get_vertex_key(collection_name, vertex_key)[source]

Get a vertex key

info_graph()[source]
is_vertex(collection_name, vertex_key)[source]

Check a existence of vertex

list_edge_definitions()[source]

List edge collections

list_graph()[source]

List all graphs

list_vertex_collections()[source]

List vertex collections

modify_edge(collection_name, edge_key, data)[source]

Modify a edge

modify_vertex(collection_name, vertex_key, data)[source]

Modify a vertex

remove_edge(collection_name, edge_key)[source]

Remove a edge

remove_edge_definition(collection_name)[source]

Remove edge definition

remove_vertex(collection_name, vertex_key)[source]

Remove a vertex

remove_vertex_collection(collection_name)[source]

Remove vertex collection

replace_edge(collection_name, edge_key, data)[source]

Replace a edge

replace_edge_definition(collection_name, from_list, to_list)[source]

Replace edge definition

replace_vertex(collection_name, vertex_key, data)[source]

Replace a vertex

traversal(startVertex, graph_name=1, direction='any', data=1)[source]

Graph traversal

unicode2key(text)[source]

Convert unicode to key string e.g., ‘한국어’ to ‘e3a38b24-e999-509d-958f-25f5b717c376’