Home / Function/ test_single_node_subgraph_mermaid() — langchain Function Reference

test_single_node_subgraph_mermaid() — langchain Function Reference

Architecture documentation for the test_single_node_subgraph_mermaid() function in test_graph.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  e497c1a7_e333_c649_d4ac_56b6fbb074c4["test_single_node_subgraph_mermaid()"]
  83e2cebc_592b_5a1b_c581_48dfbd3d53cf["test_graph.py"]
  e497c1a7_e333_c649_d4ac_56b6fbb074c4 -->|defined in| 83e2cebc_592b_5a1b_c581_48dfbd3d53cf
  style e497c1a7_e333_c649_d4ac_56b6fbb074c4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/runnables/test_graph.py lines 458–472

def test_single_node_subgraph_mermaid(snapshot: SnapshotAssertion) -> None:
    empty_data = BaseModel
    nodes = {
        "__start__": Node(
            id="__start__", name="__start__", data=empty_data, metadata=None
        ),
        "sub:meow": Node(id="sub:meow", name="meow", data=empty_data, metadata=None),
        "__end__": Node(id="__end__", name="__end__", data=empty_data, metadata=None),
    }
    edges = [
        Edge(source="__start__", target="sub:meow", data=None, conditional=False),
        Edge(source="sub:meow", target="__end__", data=None, conditional=False),
    ]
    graph = Graph(nodes, edges)
    assert graph.draw_mermaid() == snapshot(name="mermaid")

Domain

Subdomains

Frequently Asked Questions

What does test_single_node_subgraph_mermaid() do?
test_single_node_subgraph_mermaid() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_graph.py.
Where is test_single_node_subgraph_mermaid() defined?
test_single_node_subgraph_mermaid() is defined in libs/core/tests/unit_tests/runnables/test_graph.py at line 458.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free