diff --git a/src/backend/graph.js b/src/backend/graph.js index f26e3f5..acc501e 100644 --- a/src/backend/graph.js +++ b/src/backend/graph.js @@ -8,8 +8,6 @@ export type Address = { export type Node = { address: Address, - inEdges: Address[], - outEdges: Address[], payload: T, }; @@ -23,6 +21,8 @@ export type Edge = { export type Graph = { nodes: {[stringAddress: string]: Node}, edges: {[stringAddress: string]: Edge}, + outEdges: {[nodeAddress: string]: Address[]}, + inEdges: {[nodeAddress: string]: Address[]}, }; export function addressToString(address: Address) {