File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
src/neo4j_graphrag/experimental/pipeline Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 23
23
from neo4j_graphrag .utils .logging import prettify
24
24
25
25
try :
26
- from neo4j_viz import Node , Relationship , VisualizationGraph as NeoVizGraph , CaptionAlignment
26
+ from neo4j_viz import (
27
+ Node ,
28
+ Relationship ,
29
+ VisualizationGraph as NeoVizGraph ,
30
+ CaptionAlignment ,
31
+ )
27
32
28
33
HAS_NEO4J_VIZ = True
29
34
except ImportError :
@@ -248,7 +253,7 @@ def get_neo4j_viz_graph(self, hide_unused_outputs: bool = True) -> NeoVizGraph:
248
253
caption_size = 12 ,
249
254
pinned = False ,
250
255
x = 0 ,
251
- y = 0
256
+ y = 0 ,
252
257
)
253
258
)
254
259
node_counter += 1
@@ -267,16 +272,18 @@ def get_neo4j_viz_graph(self, hide_unused_outputs: bool = True) -> NeoVizGraph:
267
272
caption_size = 10 ,
268
273
pinned = False ,
269
274
x = 0 ,
270
- y = 0
275
+ y = 0 ,
271
276
)
272
277
)
273
278
# Connect component to its output
274
279
relationships .append (
275
280
Relationship (
276
- source = node_ids [n ], target = node_ids [param_node_name ], caption = "" ,
281
+ source = node_ids [n ],
282
+ target = node_ids [param_node_name ],
283
+ caption = "" ,
277
284
caption_align = CaptionAlignment .CENTER ,
278
285
caption_size = 10 ,
279
- color = "#000000"
286
+ color = "#000000" ,
280
287
)
281
288
)
282
289
node_counter += 1
@@ -299,7 +306,7 @@ def get_neo4j_viz_graph(self, hide_unused_outputs: bool = True) -> NeoVizGraph:
299
306
caption = param ,
300
307
color = "#EA4335" , # Red for parameter connections
301
308
caption_align = CaptionAlignment .CENTER ,
302
- caption_size = 10
309
+ caption_size = 10 ,
303
310
)
304
311
)
305
312
You can’t perform that action at this time.
0 commit comments