-
-
Notifications
You must be signed in to change notification settings - Fork 441
Expand file tree
/
Copy path__main__.py
More file actions
16 lines (13 loc) · 626 Bytes
/
__main__.py
File metadata and controls
16 lines (13 loc) · 626 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import json
from typing import Union, Dict, Optional
from abc import ABC
from pyDataExtraction.commonTypes.Graph import Graph
if __name__ == "__main__":
# NOTE this will likely be what will be called by the PyEvaluation Engine,
# this will be where this library interfaces with the existing codebase
# TODO: implement testing for each dataType, it may be a good idea to compare
# with output of typescript extractors
graph_data1 = {"A": ["B", "C"], "B": ["A", "C"], "C": ["A", "D"], "D": ["A"]}
graph_data2 = {1: [2, 3], 2: [1, 3], 3: [1, 4], 4: [1]}
graph = Graph(graph_data1)
print(graph)