Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna committed Oct 17, 2023
1 parent d5cb742 commit a44a5d3
Show file tree
Hide file tree
Showing 7 changed files with 849 additions and 472 deletions.
34 changes: 17 additions & 17 deletions adbcug_adapter/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-

from abc import ABC
from typing import Any, List, Optional, Set
from typing import Any, Dict, List, Optional, Set

from arango.graph import Graph as ADBGraph
from cugraph import Graph as CUGGraph
Expand All @@ -19,7 +19,7 @@ def arangodb_to_cugraph(
self,
name: str,
metagraph: ADBMetagraph,
**query_options: Any,
**adb_export_kwargs: Any,
) -> CUGMultiGraph:
raise NotImplementedError # pragma: no cover

Expand All @@ -28,12 +28,12 @@ def arangodb_collections_to_cugraph(
name: str,
v_cols: Set[str],
e_cols: Set[str],
**query_options: Any,
**adb_export_kwargs: Any,
) -> CUGMultiGraph:
raise NotImplementedError # pragma: no cover

def arangodb_graph_to_cugraph(
self, name: str, **query_options: Any
self, name: str, **adb_export_kwargs: Any
) -> CUGMultiGraph:
raise NotImplementedError # pragma: no cover

Expand All @@ -43,19 +43,13 @@ def cugraph_to_arangodb(
cug_graph: CUGGraph,
edge_definitions: Optional[List[Json]] = None,
orphan_collections: Optional[List[str]] = None,
keyify_nodes: bool = False,
keyify_edges: bool = False,
overwrite_graph: bool = False,
**import_options: Any,
batch_size: Optional[int] = None,
use_async: bool = False,
**adb_import_kwargs: Any,
) -> ADBGraph:
raise NotImplementedError # pragma: no cover

def __fetch_adb_docs(self) -> None:
raise NotImplementedError # pragma: no cover

def __insert_adb_docs(self) -> None:
raise NotImplementedError # pragma: no cover


class Abstract_ADBCUG_Controller(ABC):
def _prepare_arangodb_vertex(self, adb_vertex: Json, col: str) -> None:
Expand All @@ -65,17 +59,23 @@ def _identify_cugraph_node(self, cug_node_id: CUGId, adb_v_cols: List[str]) -> s
raise NotImplementedError # pragma: no cover

def _identify_cugraph_edge(
self, from_cug_node: Json, to_cug_node: Json, adb_e_cols: List[str]
self,
from_cug_id: CUGId,
to_cug_id: CUGId,
cug_map: Dict[CUGId, str],
adb_e_cols: List[str],
) -> str:
raise NotImplementedError # pragma: no cover

def _keyify_cugraph_node(self, cug_node_id: CUGId, col: str) -> str:
def _keyify_cugraph_node(self, i: int, cug_node_id: CUGId, col: str) -> str:
raise NotImplementedError # pragma: no cover

def _keyify_cugraph_edge(
self,
from_cug_node: Json,
to_cug_node: Json,
i: int,
from_cug_id: CUGId,
to_cug_id: CUGId,
cug_map: Dict[CUGId, str],
col: str,
) -> str:
raise NotImplementedError # pragma: no cover
Expand Down
Loading

0 comments on commit a44a5d3

Please sign in to comment.