Skip to content

Commit c29429e

Browse files
committed
Updated docstrings of view and to_networkx as suggested.
1 parent 26f7ba7 commit c29429e

File tree

1 file changed

+2
-2
lines changed
  • libs/langchain-mongodb/langchain_mongodb/graphrag

1 file changed

+2
-2
lines changed

libs/langchain-mongodb/langchain_mongodb/graphrag/graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def to_networkx(
558558
) -> networkx.DiGraph:
559559
"""Utility converts Entity Collection to `NetworkX DiGraph <https://networkx.org/documentation/stable/index.html>`_
560560
561-
NOTE: Requires optional-dependency "viz", i.e. `uv sync --extra viz`
561+
NOTE: Requires optional-dependency "viz", i.e. `pip install "langchain-mongodb[viz]"`.
562562
563563
Args:
564564
nx_opts: Keyword arguments for networkx calls.
@@ -643,7 +643,7 @@ def view(
643643
however, another good layout choice is:
644644
`layout=nx.multipartite_layout, nx_opts["subset_key"]= "type"`
645645
646-
NOTE: Requires optional-dependency "viz", i.e. `uv sync --extra viz`
646+
NOTE: Requires optional-dependency "viz", i.e. `pip install "langchain-mongodb[viz]"`.
647647
648648
You can save the view as any HoloViews object with `.save`.
649649
The type will be inferred from the filename's suffix,

0 commit comments

Comments
 (0)