{
  "id": "task_libraries:graph-visualization/python",
  "path": "/exapedia/python-graph-visualization-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python graph visualization libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python graph visualization libraries draw networks of nodes and edges as images, documents, or interactive web pages. A layout engine places the nodes so that edges cross as little as possible before a renderer draws the result. These libraries let developers and AI agents show dependency graphs, knowledge graphs, and system architectures."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python graph visualization libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#networkx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F135"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#graphviz",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F153"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pydot",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F168"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#rustworkx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#bokeh",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F197"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#igraph",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F214"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyvis",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F231"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#diagrams",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F246"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#networkx",
          "label": [
            {
              "t": "text",
              "text": "NetworkX"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F136"
        },
        {
          "t": "text",
          "text": ", a count that covers all its graph analysis."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Standalone HTML",
            "Needs Graphviz to render"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#networkx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F135"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#graphviz",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F153"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pydot",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F168"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#rustworkx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#bokeh",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F197"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#igraph",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F214"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyvis",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F231"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#diagrams",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F246"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "networkx",
          "name": [
            {
              "t": "fact",
              "fact": "F135"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/networkx/networkx"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/networkx"
            },
            {
              "label": "Docs",
              "href": "https://networkx.org/documentation/stable/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F142"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://networkx.org/documentation/stable/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F135"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/py-why/dowhy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F151"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _draw_graph_with_custom_layout(\n    graph: nx.Graph,\n    colors: Dict[Any, str],\n    edge_widths: Dict[Tuple[Any, Any], float],\n    figure_size: Optional[List[int]] = None,\n):\n    # This layout tries to mimic the graphviz layout in a simpler form. The depth grows horizontally here instead of\n    # vertically.\n    if isinstance(graph, nx.DiGraph):\n        graph = nx.DiGraph(graph)\n    else:\n        graph = nx.Graph(graph)\n\n    layers = _custom_assign_layers(graph)\n    nx.set_node_attributes(graph, layers, \"layer\")\n    node_positions = nx.multipartite_layout(graph, subset_key=\"layer\")\n\n    if figure_size is None:\n        # Set the figure size based on the number of nodes\n        figure = plt.figure(\n            figsize=(\n                max(np.max([v for v in layers.values()]) * 2, 5),\n                max(_custom_count_nodes_vertically(graph) * 1.25, 5),\n            )\n        )\n    else:\n        figure = plt.figure(figsize=figure_size)\n\n    nx.draw_networkx_nodes(\n        graph,\n        node_positions,\n        node_size=2000,\n        node_color=[colors[node] for node in graph.nodes()],\n        alpha=0.8,\n    )\n\n    vertical_neighbor_indicator = _custom_create_vertical_neighbor_indicator(graph, node_positions)\n\n    # Nodes that are vertically connected, but not neighbors should be connected via a curved edge.\n    edges_with_curved_line = [\n        (u, v)\n        for u, v in graph.edges()\n        if graph.nodes[u][\"layer\"] == graph.nodes[v][\"layer\"] and not vertical_neighbor_indicator.loc[str(u), str(v)]\n    ]\n    nx.draw_networkx_edges(\n        graph,\n        node_positions,\n        edgelist=edges_with_curved_line,\n        width=[edge_widths[(s, t)] for (s, t) in edges_with_curved_line],\n        edge_color=[colors[(s, t)] for (s, t) in edges_with_curved_line],\n        arrowsize=20,\n        connectionstyle=\"arc3,rad=0.5\",\n        alpha=0.8,\n        min_source_margin=25,\n        min_target_margin=21,\n    )\n\n    # All other nodes should be connected with a straight line.\n    edges_with_straigth_line = [\n        (u, v)\n        for u, v in graph.edges()\n        if (graph.nodes[u][\"layer\"] == graph.nodes[v][\"layer\"] and vertical_neighbor_indicator.loc[str(u), str(v)])\n        or graph.nodes[u][\"layer\"] != graph.nodes[v][\"layer\"]\n    ]\n    nx.draw_networkx_edges(\n        graph,\n        node_positions,\n        edgelist=edges_with_straigth_line,\n        width=[edge_widths[(s, t)] for (s, t) in edges_with_straigth_line],\n        edge_color=[colors[(s, t)] for (s, t) in edges_with_straigth_line],\n        arrowsize=20,\n        alpha=0.8,\n        min_source_margin=25,\n        min_target_margin=21,\n    )\n\n    # Draw labels node labels\n    for node, (x, y) in node_positions.items():\n        plt.text(x, y, node, ha=\"center\", va=\"center\", color=\"black\", fontweight=\"bold\")\n\n    return figure",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/py-why/dowhy/blob/45de9a90623bae166e32790a6bb5a77827ef91cd/dowhy/utils/networkx_plotting.py#L101-L181",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F150"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=networkx%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F135"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import networkx as nx\nimport matplotlib.pyplot as plt\ngraph = nx.path_graph(3)\nnx.draw_networkx(graph)\nplt.show()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://networkx.org/documentation/stable/reference/drawing.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "drawing.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F140"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "graphviz",
          "name": [
            {
              "t": "fact",
              "fact": "F153"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/xflr6/graphviz"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/graphviz"
            },
            {
              "label": "Docs",
              "href": "https://graphviz.readthedocs.io"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://graphviz.readthedocs.io",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F153"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/openai/openai-agents-python",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F166"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def draw_graph(agent: Agent, filename: str | None = None) -> graphviz.Source:\n    \"\"\"\n    Draws the graph for the given agent and optionally saves it as a PNG file.\n\n    Args:\n        agent (Agent): The agent for which the graph is to be drawn.\n        filename (str): The name of the file to save the graph as a PNG.\n\n    Returns:\n        graphviz.Source: The graphviz Source object representing the graph.\n    \"\"\"\n    dot_code = get_main_graph(agent)\n    graph = graphviz.Source(dot_code)\n\n    if filename:\n        graph.render(filename, format=\"png\", cleanup=True)\n\n    return graph",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/openai/openai-agents-python/blob/64fbde5d02b42ae5f9db668eb0184cdb3fc9d775/src/agents/extensions/visualization.py#L406-L423",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F165"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20graphviz%20for%20graph%20diagrams%2C%20network%20visualization%2C%20interactive%20HTML%20graphs%2C%20DOT%20graph%20conversion%20and%20notebook%20exploration&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F153"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from graphviz import Digraph\ngraph = Digraph()\ngraph.edge('a', 'b')\ngraph.render('graph', format='svg', cleanup=True)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://graphviz.readthedocs.io/en/stable/manual.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "fsm.py"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F158"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pydot",
          "name": [
            {
              "t": "fact",
              "fact": "F168"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pydot/pydot"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pydot"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/pydot/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F39"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/pydot/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F168"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F47"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import pydot\ngraph = pydot.Dot(graph_type='digraph')\ngraph.add_edge(pydot.Edge('a', 'b'))\ngraph.write_svg('graph.svg')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/pydot/pydot",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20pydot%20for%20graph%20diagrams%2C%20network%20visualization%2C%20interactive%20HTML%20graphs%2C%20DOT%20graph%20conversion%20and%20notebook%20exploration&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F168"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F173"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "rustworkx",
          "name": [
            {
              "t": "fact",
              "fact": "F179"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Qiskit/rustworkx"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/rustworkx"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/rustworkx/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F186"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/rustworkx/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F179"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/Qiskit/qiskit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def draw(self, method=\"neato\"):\n    \"\"\"Draws the coupling map.\n\n    This function calls the :func:`~rustworkx.visualization.graphviz_draw` function from the\n    ``rustworkx`` package to draw the :class:`CouplingMap` object.\n\n    .. warning::\n        This function will call the system Graphviz tool on a file involving user-controllable\n        strings (such as qubit objects).  It is recommended to only call this function on\n        trusted input.\n\n    Args:\n        method (str): The layout method to use. See the documentation for\n            :func:`~rustworkx.visualization.graphviz_draw` for the list of supported methods\n\n    Returns:\n        PIL.Image: Drawn coupling map.\n\n    \"\"\"\n\n    return graphviz_draw(self.graph, method=method)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/Qiskit/qiskit/blob/5a340d1001929ccafe791816b27888a56437699b/qiskit/transpiler/coupling.py#L500-L520",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F194"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=rustworkx%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F179"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import rustworkx as rx\nfrom rustworkx.visualization import mpl_draw\nimport matplotlib.pyplot as plt\ngraph = rx.PyDiGraph()\ngraph.extend_from_edge_list([(0, 1)])\nmpl_draw(graph)\nplt.show()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.rustworkx.org/apiref/rustworkx.visualization.mpl_draw.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "rustworkx.visualization.mpl_draw.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F184"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "bokeh",
          "name": [
            {
              "t": "fact",
              "fact": "F197"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/bokeh/bokeh"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/bokeh"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/bokeh/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F204"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/bokeh/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F197"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/holoviz/holoviews",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F212"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _init_glyphs(self, plot, element, ranges, source):\n    # Get data and initialize data source\n    style = self.style[self.cyclic_index]\n    data, mapping, style = self.get_data(element, ranges, style)\n    self.handles[\"previous_id\"] = element._plot_id\n\n    # Initialize GraphRenderer\n    edge_mapping = {k: v for k, v in mapping[self.edge_glyph].items() if \"color\" not in k}\n    graph_args, properties = self._get_graph_properties(\n        plot, element, data, mapping, ranges, style\n    )\n    renderer = plot.graph(*graph_args, **properties)\n    if self.filled or self.bezier:\n        self._init_filled_edges(renderer, properties, edge_mapping)\n    self._set_interaction_policies(renderer)\n\n    # Initialize other renderers\n    if data and mapping:\n        CompositeElementPlot._init_glyphs(\n            self, plot, element, ranges, source, data, mapping, style\n        )\n\n    # Reorder renderers\n    if self._draw_order:\n        self._reorder_renderers(plot, renderer, mapping)\n\n    self.handles[\"glyph_renderer\"] = renderer\n    self.handles[\"scatter_1_glyph_renderer\"] = renderer.node_renderer\n    self.handles[self.edge_glyph + \"_glyph_renderer\"] = renderer.edge_renderer\n    self.handles[\"scatter_1_glyph\"] = renderer.node_renderer.glyph\n    self.handles[self.edge_glyph + \"_glyph\"] = renderer.edge_renderer.glyph\n    if \"hover\" in self.handles:\n        if self.handles[\"hover\"].renderers == \"auto\":\n            self.handles[\"hover\"].renderers = []\n        self.handles[\"hover\"].renderers.append(renderer)\n    if self.colorbar:\n        for k, v in list(self.handles.items()):\n            if not k.endswith(\"color_mapper\"):\n                continue\n            self._draw_colorbar(plot, v, k.replace(\"color_mapper\", \"\"))",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/holoviz/holoviews/blob/dd1fc09630b8584c1785f00ecb2a2e5eab446b7c/holoviews/plotting/bokeh/graphs.py#L288-L327",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=bokeh%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F197"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import networkx as nx\nfrom bokeh.plotting import figure, from_networkx\nfrom bokeh.io import output_file, save\nplot = figure()\nplot.renderers.append(from_networkx(nx.path_graph(3), nx.spring_layout, seed=1))\noutput_file('graph.html')\nsave(plot)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.bokeh.org/en/latest/docs/user_guide/topics/graph.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "graph.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F202"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "igraph",
          "name": [
            {
              "t": "fact",
              "fact": "F214"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/igraph/python-igraph"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/igraph"
            },
            {
              "label": "Docs",
              "href": "https://python.igraph.org"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F221"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://python.igraph.org",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F214"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/scverse/scanpy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F229"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def get_igraph_from_adjacency(adjacency: CSBase, *, directed: bool) -> Graph:\n    \"\"\"Get igraph graph from adjacency matrix.\"\"\"\n    import igraph as ig\n    import scipy.sparse as sps\n\n    import scanpy as sc\n\n    if sc.settings.preset is sc.Preset.ScanpyV2Preview:\n        # TODO: replace all call sites with this line\n        return ig.Graph.Weighted_Adjacency(\n            sps.coo_matrix(adjacency) if isinstance(adjacency, SpBase) else adjacency,\n            mode=ig.ADJ_DIRECTED if directed else ig.ADJ_UNDIRECTED,\n        )\n\n    sources, targets = adjacency.nonzero()\n    weights = dematrix(adjacency[sources, targets]).ravel() if len(sources) else []\n    g = ig.Graph(directed=directed)\n    g.add_vertices(adjacency.shape[0])  # this adds adjacency.shape[0] vertices\n    g.add_edges(list(zip(sources, targets, strict=True)))\n    with suppress(KeyError):\n        g.es[\"weight\"] = weights\n    if g.vcount() != adjacency.shape[0]:\n        logg.warning(\n            f\"The constructed graph has only {g.vcount()} nodes. \"\n            \"Your adjacency matrix contained redundant nodes.\"\n        )\n    return g",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/scverse/scanpy/blob/5c7d839cfe8d3d39c94a896bc876f775e6ae0eac/src/scanpy/_utils/__init__.py#L295-L321",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F228"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=igraph%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F214"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import igraph as ig\nimport matplotlib.pyplot as plt\ngraph = ig.Graph([(0, 1)], directed=True)\nfig, ax = plt.subplots()\nig.plot(graph, target=ax)\nplt.show()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://python.igraph.org/en/stable/visualisation.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "visualisation.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F219"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pyvis",
          "name": [
            {
              "t": "fact",
              "fact": "F231"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/WestHealth/pyvis"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pyvis"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/pyvis/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F66"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/pyvis/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F231"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F72"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F73"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F74"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/HKUDS/LightRAG",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def generate_html(graph_data: dict, output_file: str) -> str:\n    \"\"\"Generate an interactive HTML visualization from graph data.\"\"\"\n    nodes = graph_data.get(\"nodes\", [])\n    edges = graph_data.get(\"edges\", [])\n\n    if not nodes:\n        print(\"No nodes found in the graph. Index some documents first.\")\n        sys.exit(1)\n\n    print(f\"Building visualization: {len(nodes)} nodes, {len(edges)} edges\")\n\n    net = Network(height=\"100vh\", notebook=False, cdn_resources=\"in_line\")\n\n    # Add nodes with colors based on entity type\n    import hashlib\n\n    for node in nodes:\n        node_id = node.get(\"id\", \"\")\n        props = node.get(\"properties\", {})\n        entity_type = props.get(\"entity_type\", \"unknown\")\n        description = props.get(\"description\", \"\")\n\n        # Deterministic color from entity type\n        color_hash = int(hashlib.md5(entity_type.encode()).hexdigest()[:6], 16)\n        color = f\"#{color_hash:06x}\"\n\n        net.add_node(\n            node_id,\n            label=node_id,\n            title=f\"[{entity_type}] {description[:200]}\"\n            if description\n            else entity_type,\n            color=color,\n        )\n\n    # Add edges\n    for edge in edges:\n        source = edge.get(\"source\", \"\")\n        target = edge.get(\"target\", \"\")\n        props = edge.get(\"properties\", {})\n        rel_type = edge.get(\"type\", \"\")\n        description = props.get(\"description\", \"\")\n\n        net.add_edge(\n            source,\n            target,\n            title=f\"[{rel_type}] {description[:200]}\" if description else rel_type,\n            label=rel_type,\n        )\n\n    net.save_graph(output_file)\n    print(f\"Graph saved to {output_file}\")\n    return output_file",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/HKUDS/LightRAG/blob/db4d4b23dd563238886bbdda4fa72df068897878/examples/graph_visual_with_opensearch.py#L58-L110",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F243"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20pyvis%20for%20graph%20diagrams%2C%20network%20visualization%2C%20interactive%20HTML%20graphs%2C%20DOT%20graph%20conversion%20and%20notebook%20exploration&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F231"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from pyvis.network import Network\nnet = Network(notebook=False, cdn_resources='in_line')\nnet.add_node(0)\nnet.add_node(1)\nnet.add_edge(0, 1)\nnet.write_html('graph.html', notebook=False, open_browser=False)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pyvis.readthedocs.io/en/latest/documentation.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "example.ipynb"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F236"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "diagrams",
          "name": [
            {
              "t": "fact",
              "fact": "F246"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mingrammer/diagrams"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/diagrams"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/diagrams/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F253"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/diagrams/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F246"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/apache/airflow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F263"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def generate_basic_airflow_diagram():\n    image_file = (MY_DIR / MY_FILENAME).with_suffix(\".png\")\n\n    console.print(f\"[bright_blue]Generating architecture image {image_file}\")\n    with Diagram(\n        name=\"\",\n        show=False,\n        direction=\"LR\",\n        filename=MY_FILENAME,\n        outformat=\"png\",\n        graph_attr=graph_attr,\n        edge_attr=edge_attr,\n    ):\n        user = User(\"Airflow User\")\n\n        dag_bundle = Custom(\"Dag bundle\", MULTIPLE_FILES_IMAGE.as_posix())\n        user >> Edge(color=\"brown\", style=\"solid\", reverse=False, label=\"author\\n\\n\") >> dag_bundle\n\n        with Cluster(\"Parsing, Scheduling & Executing\"):\n            dag_processor = Python(\"Dag processor\")\n            scheduler = Python(\"Scheduler\")\n\n        metadata_db = Custom(\"Metadata DB\", DATABASE_IMAGE.as_posix())\n        scheduler >> Edge(color=\"red\", style=\"dotted\", reverse=True) >> metadata_db\n        dag_processor >> Edge(color=\"red\", style=\"dotted\", reverse=True) >> metadata_db\n\n        plugins_and_packages = Custom(\n            \"Plugin folder\\n& installed packages\", PACKAGES_IMAGE.as_posix(), color=\"transparent\"\n        )\n\n        user >> Edge(color=\"blue\", style=\"solid\", reverse=False, label=\"install\\n\\n\") >> plugins_and_packages\n\n        with Cluster(\"UI\"):\n            webserver = Python(\"API Server\")\n\n        webserver >> Edge(color=\"black\", style=\"solid\", reverse=True, label=\"operate\\n\\n\") >> user\n\n        metadata_db >> Edge(color=\"red\", style=\"dotted\", reverse=True) >> webserver\n\n        dag_bundle >> Edge(color=\"brown\", style=\"solid\", label=\"read\\n\\n\") >> dag_processor\n\n        plugins_and_packages >> Edge(color=\"blue\", style=\"solid\", label=\"install\\n\\n\") >> scheduler\n        plugins_and_packages >> Edge(color=\"blue\", style=\"solid\", label=\"install\\n\\n\") >> dag_processor\n        plugins_and_packages >> Edge(color=\"blue\", style=\"solid\", label=\"install\\n\\n\") >> webserver\n\n    console.print(f\"[green]Generating architecture image {image_file}\")",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/apache/airflow/blob/8de681ba13fcce40ebd50c3bb7d49b23acc90cc5/airflow-core/docs/img/diagram_basic_airflow_architecture.py#L56-L101",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F262"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=diagrams%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F246"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from diagrams import Diagram\nfrom diagrams.aws.compute import EC2\nfrom diagrams.aws.database import RDS\nfrom diagrams.aws.network import ELB\n\nwith Diagram('Web Service', show=False):\n    ELB('lb') >> EC2('web') >> RDS('userdb')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://diagrams.mingrammer.com/docs/getting-started/installation",
                  "label": [
                    {
                      "t": "text",
                      "text": "installation.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F251"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python graph visualization library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#graphviz",
          "label": [
            {
              "t": "text",
              "text": "graphviz"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits static diagrams laid out by the Graphviz engines. "
        },
        {
          "t": "link",
          "href": "#pyvis",
          "label": [
            {
              "t": "text",
              "text": "pyvis"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits interactive network views in an HTML page. "
        },
        {
          "t": "link",
          "href": "#diagrams",
          "label": [
            {
              "t": "text",
              "text": "Diagrams"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits cloud architecture diagrams written as code."
        }
      ]
    },
    {
      "q": "What is pyvis?",
      "a": [
        {
          "t": "link",
          "href": "#pyvis",
          "label": [
            {
              "t": "text",
              "text": "pyvis"
            }
          ]
        },
        {
          "t": "text",
          "text": " creates interactive network visualizations as HTML pages, with the JavaScript resources inline or loaded from a CDN."
        }
      ]
    },
    {
      "q": "How do I use Graphviz with Python?",
      "a": [
        {
          "t": "text",
          "text": "The "
        },
        {
          "t": "link",
          "href": "#graphviz",
          "label": [
            {
              "t": "text",
              "text": "graphviz"
            }
          ]
        },
        {
          "t": "text",
          "text": " package builds DOT source from Python and renders it through the Graphviz layout engines installed on the system. "
        },
        {
          "t": "link",
          "href": "#pydot",
          "label": [
            {
              "t": "text",
              "text": "pydot"
            }
          ]
        },
        {
          "t": "text",
          "text": " also parses existing DOT files."
        }
      ]
    },
    {
      "q": "What is Diagrams in Python?",
      "a": [
        {
          "t": "link",
          "href": "#diagrams",
          "label": [
            {
              "t": "text",
              "text": "Diagrams"
            }
          ]
        },
        {
          "t": "text",
          "text": " draws architecture diagrams as code from nodes, edges, and optional icon sets for cloud services."
        }
      ]
    },
    {
      "q": "How do I draw a NetworkX graph?",
      "a": [
        {
          "t": "link",
          "href": "#networkx",
          "label": [
            {
              "t": "text",
              "text": "NetworkX"
            }
          ]
        },
        {
          "t": "text",
          "text": " includes drawing helpers that use Matplotlib or Graphviz. Its own guide warns that drawing may move to an add-on package."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, graphviz",
      "display": "graphviz",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, graphviz",
      "display": "36.6M",
      "asOf": "2026-11-16"
    },
    "F3": {
      "label": "License, graphviz",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, graphviz",
      "display": "0.21, Jun 2025",
      "asOf": "2025-06-15"
    },
    "F5": {
      "label": "Package release date, graphviz",
      "display": "Jun 2025",
      "asOf": "2025-06-15"
    },
    "F6": {
      "label": "Repository stars, graphviz",
      "display": "1.8K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Creates directed graphs, graphviz",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Customizes node appearance, graphviz",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Runs force-directed layouts, graphviz",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Output formats, graphviz",
      "display": "PDF, SVG, PNG",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, graphviz",
      "display": "pip install graphviz",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, graphviz",
      "display": "Creates DOT graph descriptions and renders them through Graphviz.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, graphviz",
      "display": "Renders diagrams in multiple formats",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, graphviz",
      "display": "Generate PDF, PNG, or SVG through the installed Graphviz renderer.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, graphviz",
      "display": "Styles nodes and edges",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, graphviz",
      "display": "Set graph defaults or customize individual nodes and connections.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, graphviz",
      "display": "Needs a separate Graphviz installation",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, graphviz",
      "display": "Install Graphviz and make its dot executable available on PATH.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, graphviz",
      "display": "Labels interpret special text",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, graphviz",
      "display": "Use graphviz.escape when arbitrary text must appear literally.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, graphviz",
      "display": "#!/usr/bin/env python3\n\n\"\"\"https://graphviz.org/Gallery/directed/fsm.html\"\"\"\n\nimport graphviz\n\nf = graphviz.Digraph('finite_state_machine', filename='fsm.gv')\nf.attr(rankdir='LR', size='8,5')\n\nf.attr('node', shape='doublecircle')\nf.node('LR_0')\nf.node('LR_3')\nf.node('LR_4')\nf.node('LR_8')\n\nf.attr('node', shape='circle')\nf.edge('LR_0', 'LR_2', label='SS(B)')\nf.edge('LR_0', 'LR_1', label='SS(S)')\nf.edge('LR_1', 'LR_3', label='S($end)')\nf.edge('LR_2', 'LR_6', label='SS(b)')\nf.edge('LR_2', 'LR_5', label='SS(a)')\nf.edge('LR_2', 'LR_4', label='S(A)')\nf.edge('LR_5', 'LR_7', label='S(b)')\nf.edge('LR_5', 'LR_5', label='S(a)')\nf.edge('LR_6', 'LR_6', label='S(b)')\nf.edge('LR_6', 'LR_5', label='S(a)')\nf.edge('LR_7', 'LR_8', label='S(b)')\nf.edge('LR_7', 'LR_5', label='S(a)')\nf.edge('LR_8', 'LR_6', label='S(b)')\nf.edge('LR_8', 'LR_5', label='S(a)')\n\nf.view()\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, graphviz",
      "display": "def draw_graph(agent: Agent, filename: str | None = None) -> graphviz.Source:\n    \"\"\"\n    Draws the graph for the given agent and optionally saves it as a PNG file.\n\n    Args:\n        agent (Agent): The agent for which the graph is to be drawn.\n        filename (str): The name of the file to save the graph as a PNG.\n\n    Returns:\n        graphviz.Source: The graphviz Source object representing the graph.\n    \"\"\"\n    dot_code = get_main_graph(agent)\n    graph = graphviz.Source(dot_code)\n\n    if filename:\n        graph.render(filename, format=\"png\", cleanup=True)\n\n    return graph\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, graphviz",
      "display": "visualization.py · draw_graph()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, graphviz",
      "display": "openai/openai-agents-python",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, openai/openai-agents-python",
      "display": "30.7K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, openai/openai-agents-python",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F27": {
      "label": "Library name, pydot",
      "display": "pydot",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, pydot",
      "display": "19.3M",
      "asOf": "2026-11-16"
    },
    "F29": {
      "label": "License, pydot",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, pydot",
      "display": "4.0.1, Jun 2025",
      "asOf": "2025-06-17"
    },
    "F31": {
      "label": "Package release date, pydot",
      "display": "Jun 2025",
      "asOf": "2025-06-17"
    },
    "F32": {
      "label": "Repository stars, pydot",
      "display": "1.0K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Creates directed graphs, pydot",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Customizes node appearance, pydot",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Imports NetworkX graphs, pydot",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Runs force-directed layouts, pydot",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Output formats, pydot",
      "display": "PNG, SVG, PDF",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "Install, pydot",
      "display": "pip install pydot",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "What it does, pydot",
      "display": "Creates, reads, edits, and visualizes DOT graphs from Python.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, pydot",
      "display": "Reads and edits DOT graphs",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, pydot",
      "display": "Parse an existing DOT string before changing graph objects.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths lead, pydot",
      "display": "Converts NetworkX graphs",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "strengths, pydot",
      "display": "Use NetworkX conversion methods to move between the graph representations.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, pydot",
      "display": "Needs Graphviz for image rendering",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, pydot",
      "display": "Install Graphviz separately to generate rendered graph images.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations lead, pydot",
      "display": "Debug logging includes graph contents",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "limitations, pydot",
      "display": "DEBUG logs can include processed graph contents and DOT strings.",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Quickstart, pydot",
      "display": "import pydot\n\ngraph = pydot.Dot(\"my_graph\", graph_type=\"graph\", bgcolor=\"yellow\")\n\n# Add nodes\nmy_node = pydot.Node(\"a\", label=\"Foo\")\ngraph.add_node(my_node)\n# Or, without using an intermediate variable:\ngraph.add_node(pydot.Node(\"b\", shape=\"circle\"))\n\n# Add edges\nmy_edge = pydot.Edge(\"a\", \"b\", color=\"blue\")\ngraph.add_edge(my_edge)\n# Or, without using an intermediate variable:\ngraph.add_edge(pydot.Edge(\"b\", \"c\", color=\"blue\"))\n\ngraph.write_png(\"output.png\")\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function, pydot",
      "display": "def to_pydot(N):\n    \"\"\"Returns a pydot graph from a NetworkX graph N.\n\n    Parameters\n    ----------\n    N : NetworkX graph\n      A graph created with NetworkX\n\n    Examples\n    --------\n    >>> K5 = nx.complete_graph(5)\n    >>> P = nx.nx_pydot.to_pydot(K5)\n\n    Notes\n    -----\n\n    \"\"\"\n    import pydot\n\n    # set Graphviz graph type\n    if N.is_directed():\n        graph_type = \"digraph\"\n    else:\n        graph_type = \"graph\"\n    strict = nx.number_of_selfloops(N) == 0 and not N.is_multigraph()\n\n    name = N.name\n    graph_defaults = N.graph.get(\"graph\", {})\n    if name == \"\":\n        P = pydot.Dot(\"\", graph_type=graph_type, strict=strict, **graph_defaults)\n    else:\n        P = pydot.Dot(\n            f'\"{name}\"', graph_type=graph_type, strict=strict, **graph_defaults\n        )\n    try:\n        P.set_node_defaults(**N.graph[\"node\"])\n    except KeyError:\n        pass\n    try:\n        P.set_edge_defaults(**N.graph[\"edge\"])\n    except KeyError:\n        pass\n\n    for n, nodedata in N.nodes(data=True):\n        str_nodedata = {str(k): str(v) for k, v in nodedata.items()}\n        n = str(n)\n        p = pydot.Node(n, **str_nodedata)\n        P.add_node(p)\n\n    if N.is_multigraph():\n        for u, v, key, edgedata in N.edges(data=True, keys=True):\n            str_edgedata = {str(k): str(v) for k, v in edgedata.items() if k != \"key\"}\n            u, v = str(u), str(v)\n            edge = pydot.Edge(u, v, key=str(key), **str_edgedata)\n            P.add_edge(edge)\n\n    else:\n        for u, v, edgedata in N.edges(data=True):\n            str_edgedata = {str(k): str(v) for k, v in edgedata.items()}\n            u, v = str(u), str(v)\n            edge = pydot.Edge(u, v, **str_edgedata)\n            P.add_edge(edge)\n    return P\n",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project function reference, pydot",
      "display": "nx_pydot.py · to_pydot()",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project repository, pydot",
      "display": "networkx/networkx",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project stars, networkx/networkx",
      "display": "17.4K",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Project push date, networkx/networkx",
      "display": "Nov 2026",
      "asOf": "2026-11-15"
    },
    "F54": {
      "label": "Library name, pyvis",
      "display": "pyvis",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Monthly downloads, pyvis",
      "display": "1.9M",
      "asOf": "2026-11-16"
    },
    "F56": {
      "label": "License, pyvis",
      "display": "BSD",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Package release, pyvis",
      "display": "0.3.2, Feb 2023",
      "asOf": "2023-02-24"
    },
    "F58": {
      "label": "Package release date, pyvis",
      "display": "Feb 2023",
      "asOf": "2023-02-24"
    },
    "F59": {
      "label": "Repository stars, pyvis",
      "display": "1.2K",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Creates directed graphs, pyvis",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Customizes node appearance, pyvis",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Imports NetworkX graphs, pyvis",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Runs force-directed layouts, pyvis",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "Output formats, pyvis",
      "display": "HTML",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "Install, pyvis",
      "display": "pip install pyvis",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "What it does, pyvis",
      "display": "Creates interactive network visualizations as HTML.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths lead, pyvis",
      "display": "Exports interactive HTML graphs",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths, pyvis",
      "display": "Share the generated visualization as an HTML file.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "strengths lead, pyvis",
      "display": "Imports NetworkX node attributes",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "strengths, pyvis",
      "display": "Convert an existing graph while retaining supported visualization properties.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations lead, pyvis",
      "display": "Collapses repeated undirected edges",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "limitations, pyvis",
      "display": "Repeated connections between the same undirected nodes produce one edge.",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "limitations lead, pyvis",
      "display": "Node IDs must be strings or integers",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "limitations, pyvis",
      "display": "Pass a string or integer as each node ID.",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Quickstart, pyvis",
      "display": "import sys,os\nsys.path.insert(0,os.path.realpath('..'))\nfrom pyvis.network import Network\n\ng = Network(notebook=True, cdn_resources='in_line')\ng.add_nodes(range(5))\ng.add_edges([\n    (0, 2),\n    (0, 3),\n    (0, 4),\n    (1, 1),\n    (1, 3),\n    (1, 2)\n])\ng.show(\"example.html\")\n",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project function, pyvis",
      "display": "def generate_html(graph_data: dict, output_file: str) -> str:\n    \"\"\"Generate an interactive HTML visualization from graph data.\"\"\"\n    nodes = graph_data.get(\"nodes\", [])\n    edges = graph_data.get(\"edges\", [])\n\n    if not nodes:\n        print(\"No nodes found in the graph. Index some documents first.\")\n        sys.exit(1)\n\n    print(f\"Building visualization: {len(nodes)} nodes, {len(edges)} edges\")\n\n    net = Network(height=\"100vh\", notebook=False, cdn_resources=\"in_line\")\n\n    # Add nodes with colors based on entity type\n    import hashlib\n\n    for node in nodes:\n        node_id = node.get(\"id\", \"\")\n        props = node.get(\"properties\", {})\n        entity_type = props.get(\"entity_type\", \"unknown\")\n        description = props.get(\"description\", \"\")\n\n        # Deterministic color from entity type\n        color_hash = int(hashlib.md5(entity_type.encode()).hexdigest()[:6], 16)\n        color = f\"#{color_hash:06x}\"\n\n        net.add_node(\n            node_id,\n            label=node_id,\n            title=f\"[{entity_type}] {description[:200]}\"\n            if description\n            else entity_type,\n            color=color,\n        )\n\n    # Add edges\n    for edge in edges:\n        source = edge.get(\"source\", \"\")\n        target = edge.get(\"target\", \"\")\n        props = edge.get(\"properties\", {})\n        rel_type = edge.get(\"type\", \"\")\n        description = props.get(\"description\", \"\")\n\n        net.add_edge(\n            source,\n            target,\n            title=f\"[{rel_type}] {description[:200]}\" if description else rel_type,\n            label=rel_type,\n        )\n\n    net.save_graph(output_file)\n    print(f\"Graph saved to {output_file}\")\n    return output_file\n",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project function reference, pyvis",
      "display": "graph_visual_with_opensearch.py · generate_html()",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Project repository, pyvis",
      "display": "HKUDS/LightRAG",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Project stars, HKUDS/LightRAG",
      "display": "40.7K",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Project push date, HKUDS/LightRAG",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F81": {
      "label": "Library name, ipycytoscape",
      "display": "ipycytoscape",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Monthly downloads, ipycytoscape",
      "display": "28.4K",
      "asOf": "2026-11-16"
    },
    "F83": {
      "label": "License, ipycytoscape",
      "display": "BSD",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Package release, ipycytoscape",
      "display": "1.3.3, Apr 2022",
      "asOf": "2022-04-04"
    },
    "F85": {
      "label": "Package release date, ipycytoscape",
      "display": "Apr 2022",
      "asOf": "2022-04-04"
    },
    "F86": {
      "label": "Repository stars, ipycytoscape",
      "display": "291",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Creates directed graphs, ipycytoscape",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Customizes node appearance, ipycytoscape",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Imports NetworkX graphs, ipycytoscape",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Runs force-directed layouts, ipycytoscape",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "Install, ipycytoscape",
      "display": "pip install ipycytoscape networkx ipywidgets",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "What it does, ipycytoscape",
      "display": "Provides interactive Cytoscape graph widgets inside Jupyter.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths lead, ipycytoscape",
      "display": "Imports NetworkX graphs",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "strengths, ipycytoscape",
      "display": "Convert graph objects directly into notebook widgets.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "strengths lead, ipycytoscape",
      "display": "Handles notebook interaction callbacks",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "strengths, ipycytoscape",
      "display": "Respond to node clicks and mouseovers in Python.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "limitations lead, ipycytoscape",
      "display": "Callbacks need a Python kernel",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "limitations, ipycytoscape",
      "display": "Exported static pages cannot run the Python interaction callbacks.",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "limitations lead, ipycytoscape",
      "display": "JSON needs Cytoscape structure",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "limitations, ipycytoscape",
      "display": "Convert arbitrary graph JSON before importing it.",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Quickstart, ipycytoscape",
      "display": "import ipycytoscape\nimport ipywidgets as widgets\nimport networkx as nx\n\n\nG = nx.complete_graph(5)\ndirected = ipycytoscape.CytoscapeWidget()\ndirected.graph.add_graph_from_networkx(G, directed=True)\ndirected\n\n",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need",
      "display": "Interactive HTML exploration",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Why choose pyvis",
      "display": "sharing an interactive network as a generated HTML file",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need in introduction",
      "display": "interactive HTML exploration",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "When to consider graphviz",
      "display": "rendered images matter more than browser interaction",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need",
      "display": "Rendered graph diagrams",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Why choose graphviz",
      "display": "generating PDF, PNG, and SVG with a system Graphviz installation",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need in introduction",
      "display": "rendered graph diagrams",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need",
      "display": "Existing DOT graphs",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Why choose pydot",
      "display": "parsing and editing graph definitions before rendering",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need in introduction",
      "display": "existing DOT graphs",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Developer need",
      "display": "Notebook callbacks",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Why choose ipycytoscape",
      "display": "handling graph interaction events through a Python kernel",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Developer need in introduction",
      "display": "notebook callbacks",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "Page introduction",
      "display": "Python graph visualization libraries let application developers display connected nodes and edges.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Which Python graph visualization library should I choose?",
      "display": "pyvis generates interactive HTML graphs.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Which Python graph visualization library should I choose?",
      "display": "graphviz renders diagrams with a system Graphviz installation.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Which Python graph visualization library should I choose?",
      "display": "pydot reads and edits DOT graph descriptions.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Which Python graph visualization library should I choose?",
      "display": "ipycytoscape provides interactive graph widgets in Jupyter.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: How is graph visualization different from graph analysis?",
      "display": "This page compares graph display tools; pyvis wraps the JavaScript visJS library for visual networks.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: How is graph visualization different from graph analysis?",
      "display": "pydot integrates with NetworkX through graph conversion methods.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Can pyvis import an existing NetworkX graph?",
      "display": "from_nx translates the graph in place, including supported matching node properties.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Can pyvis import an existing NetworkX graph?",
      "display": "Supported matching node properties are transferred to pyvis attributes.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Does installing the Python graphviz package install the renderer?",
      "display": "Rendering also requires a separate Graphviz installation and its dot executable on PATH.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Can graphviz labels contain arbitrary text?",
      "display": "Backslash escapes and angle-bracket text have special meanings; graphviz.escape preserves arbitrary text literally.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Can pydot read an existing DOT string?",
      "display": "graph_from_dot_data parses a DOT string and returns graph objects.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Can pydot create graph descriptions without rendering images?",
      "display": "Raw pydot DOT is generated by pydot itself without calling Graphviz.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Why do ipycytoscape callbacks stop working in static pages?",
      "display": "The Python interaction callbacks require a live kernel.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Does ipycytoscape accept arbitrary JSON?",
      "display": "Its JSON importer expects data formatted as a Cytoscape graph.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Which output formats are evidenced?",
      "display": "pyvis writes an interactive HTML file.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: Which output formats are evidenced?",
      "display": "Graphviz renders PDF, SVG, and PNG files through its installed renderer.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: Which output formats are evidenced?",
      "display": "pydot uses Graphviz for PNG, SVG, and PDF output.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: Does pyvis keep repeated undirected edges?",
      "display": "Its edge insertion checks existing undirected connections and skips a repeated pair.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "FAQ: What should I check before enabling pydot debug logs?",
      "display": "DEBUG logging can include processed graph contents and DOT strings.",
      "asOf": "2026-11-17"
    },
    "F135": {
      "label": "Library name, networkx",
      "display": "NetworkX",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Monthly downloads, networkx",
      "display": "279.1M",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "License, networkx",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Package release, networkx",
      "display": "3.7",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Package release date, networkx",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Install, networkx",
      "display": "pip install networkx matplotlib",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Quickstart, networkx",
      "display": "import networkx as nx\nimport matplotlib.pyplot as plt\ngraph = nx.path_graph(3)\nnx.draw_networkx(graph)\nplt.show()\n",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Official description, networkx",
      "display": "Creates and manipulates graphs and networks.",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Quickstart source file, networkx",
      "display": "reference/drawing.html",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Repository stars, networkx",
      "display": "17.4K",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Standalone HTML, networkx",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Needs Graphviz to render, networkx",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Primary role, networkx",
      "display": "Graph analysis/modeling with visualization helpers",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Drawing roadmap, networkx",
      "display": "Own guide warns drawing may move to add-on or be removed",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Project function, networkx",
      "display": "def _draw_graph_with_custom_layout(\n    graph: nx.Graph,\n    colors: Dict[Any, str],\n    edge_widths: Dict[Tuple[Any, Any], float],\n    figure_size: Optional[List[int]] = None,\n):\n    # This layout tries to mimic the graphviz layout in a simpler form. The depth grows horizontally here instead of\n    # vertically.\n    if isinstance(graph, nx.DiGraph):\n        graph = nx.DiGraph(graph)\n    else:\n        graph = nx.Graph(graph)\n\n    layers = _custom_assign_layers(graph)\n    nx.set_node_attributes(graph, layers, \"layer\")\n    node_positions = nx.multipartite_layout(graph, subset_key=\"layer\")\n\n    if figure_size is None:\n        # Set the figure size based on the number of nodes\n        figure = plt.figure(\n            figsize=(\n                max(np.max([v for v in layers.values()]) * 2, 5),\n                max(_custom_count_nodes_vertically(graph) * 1.25, 5),\n            )\n        )\n    else:\n        figure = plt.figure(figsize=figure_size)\n\n    nx.draw_networkx_nodes(\n        graph,\n        node_positions,\n        node_size=2000,\n        node_color=[colors[node] for node in graph.nodes()],\n        alpha=0.8,\n    )\n\n    vertical_neighbor_indicator = _custom_create_vertical_neighbor_indicator(graph, node_positions)\n\n    # Nodes that are vertically connected, but not neighbors should be connected via a curved edge.\n    edges_with_curved_line = [\n        (u, v)\n        for u, v in graph.edges()\n        if graph.nodes[u][\"layer\"] == graph.nodes[v][\"layer\"] and not vertical_neighbor_indicator.loc[str(u), str(v)]\n    ]\n    nx.draw_networkx_edges(\n        graph,\n        node_positions,\n        edgelist=edges_with_curved_line,\n        width=[edge_widths[(s, t)] for (s, t) in edges_with_curved_line],\n        edge_color=[colors[(s, t)] for (s, t) in edges_with_curved_line],\n        arrowsize=20,\n        connectionstyle=\"arc3,rad=0.5\",\n        alpha=0.8,\n        min_source_margin=25,\n        min_target_margin=21,\n    )\n\n    # All other nodes should be connected with a straight line.\n    edges_with_straigth_line = [\n        (u, v)\n        for u, v in graph.edges()\n        if (graph.nodes[u][\"layer\"] == graph.nodes[v][\"layer\"] and vertical_neighbor_indicator.loc[str(u), str(v)])\n        or graph.nodes[u][\"layer\"] != graph.nodes[v][\"layer\"]\n    ]\n    nx.draw_networkx_edges(\n        graph,\n        node_positions,\n        edgelist=edges_with_straigth_line,\n        width=[edge_widths[(s, t)] for (s, t) in edges_with_straigth_line],\n        edge_color=[colors[(s, t)] for (s, t) in edges_with_straigth_line],\n        arrowsize=20,\n        alpha=0.8,\n        min_source_margin=25,\n        min_target_margin=21,\n    )\n\n    # Draw labels node labels\n    for node, (x, y) in node_positions.items():\n        plt.text(x, y, node, ha=\"center\", va=\"center\", color=\"black\", fontweight=\"bold\")\n\n    return figure",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Project source file, networkx",
      "display": "dowhy/utils/networkx_plotting.py",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Project full_name, networkx",
      "display": "py-why/dowhy",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Project stargazers_count, networkx",
      "display": "8.4K",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Library name, graphviz",
      "display": "graphviz",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Monthly downloads, graphviz",
      "display": "38.3M",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "License, graphviz",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Package release, graphviz",
      "display": "0.21",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Package release date, graphviz",
      "display": "Jun 2025",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Install, graphviz",
      "display": "pip install graphviz",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Quickstart, graphviz",
      "display": "from graphviz import Digraph\ngraph = Digraph()\ngraph.edge('a', 'b')\ngraph.render('graph', format='svg', cleanup=True)\n",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Repository stars, graphviz",
      "display": "1.8K",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Standalone HTML, graphviz",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Needs Graphviz to render, graphviz",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Primary role, graphviz",
      "display": "DOT source interface to Graphviz layout/render engines",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Project function, graphviz",
      "display": "def draw_graph(agent: Agent, filename: str | None = None) -> graphviz.Source:\n    \"\"\"\n    Draws the graph for the given agent and optionally saves it as a PNG file.\n\n    Args:\n        agent (Agent): The agent for which the graph is to be drawn.\n        filename (str): The name of the file to save the graph as a PNG.\n\n    Returns:\n        graphviz.Source: The graphviz Source object representing the graph.\n    \"\"\"\n    dot_code = get_main_graph(agent)\n    graph = graphviz.Source(dot_code)\n\n    if filename:\n        graph.render(filename, format=\"png\", cleanup=True)\n\n    return graph",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Project source file, graphviz",
      "display": "src/agents/extensions/visualization.py",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Project full_name, graphviz",
      "display": "openai/openai-agents-python",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Project stargazers_count, graphviz",
      "display": "30.7K",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Library name, pydot",
      "display": "pydot",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Monthly downloads, pydot",
      "display": "20.4M",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "License, pydot",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Package release, pydot",
      "display": "4.0.1",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Package release date, pydot",
      "display": "Jun 2025",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Install, pydot",
      "display": "pip install pydot",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Quickstart, pydot",
      "display": "import pydot\ngraph = pydot.Dot(graph_type='digraph')\ngraph.add_edge(pydot.Edge('a', 'b'))\ngraph.write_svg('graph.svg')\n",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Repository stars, pydot",
      "display": "1.0K",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Standalone HTML, pydot",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Needs Graphviz to render, pydot",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Primary role, pydot",
      "display": "DOT parsing, construction, and Graphviz rendering",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Library name, rustworkx",
      "display": "rustworkx",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Monthly downloads, rustworkx",
      "display": "7.5M",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "License, rustworkx",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Package release, rustworkx",
      "display": "0.18.1",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Package release date, rustworkx",
      "display": "Jul 2026",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Install, rustworkx",
      "display": "pip install rustworkx matplotlib",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Quickstart, rustworkx",
      "display": "import rustworkx as rx\nfrom rustworkx.visualization import mpl_draw\nimport matplotlib.pyplot as plt\ngraph = rx.PyDiGraph()\ngraph.extend_from_edge_list([(0, 1)])\nmpl_draw(graph)\nplt.show()\n",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Official description, rustworkx",
      "display": "Provides a high-performance graph library for Python.",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Quickstart source file, rustworkx",
      "display": "apiref/rustworkx.visualization.mpl_draw.html",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Repository stars, rustworkx",
      "display": "1.8K",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Standalone HTML, rustworkx",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Needs Graphviz to render, rustworkx",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Backends, rustworkx",
      "display": "Matplotlib or Graphviz drawing for Rust graph structures",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Graphviz backend dependencies, rustworkx",
      "display": "Pillow plus system Graphviz; old note also lists pydot",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Project function, rustworkx",
      "display": "def draw(self, method=\"neato\"):\n    \"\"\"Draws the coupling map.\n\n    This function calls the :func:`~rustworkx.visualization.graphviz_draw` function from the\n    ``rustworkx`` package to draw the :class:`CouplingMap` object.\n\n    .. warning::\n        This function will call the system Graphviz tool on a file involving user-controllable\n        strings (such as qubit objects).  It is recommended to only call this function on\n        trusted input.\n\n    Args:\n        method (str): The layout method to use. See the documentation for\n            :func:`~rustworkx.visualization.graphviz_draw` for the list of supported methods\n\n    Returns:\n        PIL.Image: Drawn coupling map.\n\n    \"\"\"\n\n    return graphviz_draw(self.graph, method=method)",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Project source file, rustworkx",
      "display": "qiskit/transpiler/coupling.py",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Project full_name, rustworkx",
      "display": "Qiskit/qiskit",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Project stargazers_count, rustworkx",
      "display": "8.0K",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Library name, bokeh",
      "display": "Bokeh",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Monthly downloads, bokeh",
      "display": "6.5M",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "License, bokeh",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Package release, bokeh",
      "display": "3.10.2",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Package release date, bokeh",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Install, bokeh",
      "display": "pip install bokeh networkx",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Quickstart, bokeh",
      "display": "import networkx as nx\nfrom bokeh.plotting import figure, from_networkx\nfrom bokeh.io import output_file, save\nplot = figure()\nplot.renderers.append(from_networkx(nx.path_graph(3), nx.spring_layout, seed=1))\noutput_file('graph.html')\nsave(plot)\n",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Official description, bokeh",
      "display": "Draws interactive plots and applications in the browser from Python.",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Quickstart source file, bokeh",
      "display": "docs/user_guide/topics/graph.html",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Repository stars, bokeh",
      "display": "20.5K",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Standalone HTML, bokeh",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Needs Graphviz to render, bokeh",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Graph interactions, bokeh",
      "display": "Node/edge selection and linked inspection policies",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Project function, bokeh",
      "display": "def _init_glyphs(self, plot, element, ranges, source):\n    # Get data and initialize data source\n    style = self.style[self.cyclic_index]\n    data, mapping, style = self.get_data(element, ranges, style)\n    self.handles[\"previous_id\"] = element._plot_id\n\n    # Initialize GraphRenderer\n    edge_mapping = {k: v for k, v in mapping[self.edge_glyph].items() if \"color\" not in k}\n    graph_args, properties = self._get_graph_properties(\n        plot, element, data, mapping, ranges, style\n    )\n    renderer = plot.graph(*graph_args, **properties)\n    if self.filled or self.bezier:\n        self._init_filled_edges(renderer, properties, edge_mapping)\n    self._set_interaction_policies(renderer)\n\n    # Initialize other renderers\n    if data and mapping:\n        CompositeElementPlot._init_glyphs(\n            self, plot, element, ranges, source, data, mapping, style\n        )\n\n    # Reorder renderers\n    if self._draw_order:\n        self._reorder_renderers(plot, renderer, mapping)\n\n    self.handles[\"glyph_renderer\"] = renderer\n    self.handles[\"scatter_1_glyph_renderer\"] = renderer.node_renderer\n    self.handles[self.edge_glyph + \"_glyph_renderer\"] = renderer.edge_renderer\n    self.handles[\"scatter_1_glyph\"] = renderer.node_renderer.glyph\n    self.handles[self.edge_glyph + \"_glyph\"] = renderer.edge_renderer.glyph\n    if \"hover\" in self.handles:\n        if self.handles[\"hover\"].renderers == \"auto\":\n            self.handles[\"hover\"].renderers = []\n        self.handles[\"hover\"].renderers.append(renderer)\n    if self.colorbar:\n        for k, v in list(self.handles.items()):\n            if not k.endswith(\"color_mapper\"):\n                continue\n            self._draw_colorbar(plot, v, k.replace(\"color_mapper\", \"\"))",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Project source file, bokeh",
      "display": "holoviews/plotting/bokeh/graphs.py",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Project full_name, bokeh",
      "display": "holoviz/holoviews",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Project stargazers_count, bokeh",
      "display": "2.9K",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Library name, igraph",
      "display": "igraph",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Monthly downloads, igraph",
      "display": "4.3M",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "License, igraph",
      "display": "GPL-2.0",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Package release, igraph",
      "display": "1.0.0",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Package release date, igraph",
      "display": "Oct 2025",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Install, igraph",
      "display": "pip install igraph matplotlib",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Quickstart, igraph",
      "display": "import igraph as ig\nimport matplotlib.pyplot as plt\ngraph = ig.Graph([(0, 1)], directed=True)\nfig, ax = plt.subplots()\nig.plot(graph, target=ax)\nplt.show()\n",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Official description, igraph",
      "display": "Provides high-performance graph data structures and algorithms.",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Quickstart source file, igraph",
      "display": "visualisation.html",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Repository stars, igraph",
      "display": "1.5K",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Standalone HTML, igraph",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Needs Graphviz to render, igraph",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Plotting stability, igraph",
      "display": "Stable Cairo/Matplotlib; experimental Plotly",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Project function, igraph",
      "display": "def get_igraph_from_adjacency(adjacency: CSBase, *, directed: bool) -> Graph:\n    \"\"\"Get igraph graph from adjacency matrix.\"\"\"\n    import igraph as ig\n    import scipy.sparse as sps\n\n    import scanpy as sc\n\n    if sc.settings.preset is sc.Preset.ScanpyV2Preview:\n        # TODO: replace all call sites with this line\n        return ig.Graph.Weighted_Adjacency(\n            sps.coo_matrix(adjacency) if isinstance(adjacency, SpBase) else adjacency,\n            mode=ig.ADJ_DIRECTED if directed else ig.ADJ_UNDIRECTED,\n        )\n\n    sources, targets = adjacency.nonzero()\n    weights = dematrix(adjacency[sources, targets]).ravel() if len(sources) else []\n    g = ig.Graph(directed=directed)\n    g.add_vertices(adjacency.shape[0])  # this adds adjacency.shape[0] vertices\n    g.add_edges(list(zip(sources, targets, strict=True)))\n    with suppress(KeyError):\n        g.es[\"weight\"] = weights\n    if g.vcount() != adjacency.shape[0]:\n        logg.warning(\n            f\"The constructed graph has only {g.vcount()} nodes. \"\n            \"Your adjacency matrix contained redundant nodes.\"\n        )\n    return g",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Project source file, igraph",
      "display": "src/scanpy/_utils/__init__.py",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Project full_name, igraph",
      "display": "scverse/scanpy",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Project stargazers_count, igraph",
      "display": "2.6K",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Library name, pyvis",
      "display": "pyvis",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Monthly downloads, pyvis",
      "display": "2.0M",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "License, pyvis",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Package release, pyvis",
      "display": "0.3.2",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Package release date, pyvis",
      "display": "Feb 2023",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Install, pyvis",
      "display": "pip install pyvis",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Quickstart, pyvis",
      "display": "from pyvis.network import Network\nnet = Network(notebook=False, cdn_resources='in_line')\nnet.add_node(0)\nnet.add_node(1)\nnet.add_edge(0, 1)\nnet.write_html('graph.html', notebook=False, open_browser=False)\n",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Repository stars, pyvis",
      "display": "1.2K",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Standalone HTML, pyvis",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Needs Graphviz to render, pyvis",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Resource packaging, pyvis",
      "display": "Inline or CDN JavaScript resources",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Project function, pyvis",
      "display": "def generate_html(graph_data: dict, output_file: str) -> str:\n    \"\"\"Generate an interactive HTML visualization from graph data.\"\"\"\n    nodes = graph_data.get(\"nodes\", [])\n    edges = graph_data.get(\"edges\", [])\n\n    if not nodes:\n        print(\"No nodes found in the graph. Index some documents first.\")\n        sys.exit(1)\n\n    print(f\"Building visualization: {len(nodes)} nodes, {len(edges)} edges\")\n\n    net = Network(height=\"100vh\", notebook=False, cdn_resources=\"in_line\")\n\n    # Add nodes with colors based on entity type\n    import hashlib\n\n    for node in nodes:\n        node_id = node.get(\"id\", \"\")\n        props = node.get(\"properties\", {})\n        entity_type = props.get(\"entity_type\", \"unknown\")\n        description = props.get(\"description\", \"\")\n\n        # Deterministic color from entity type\n        color_hash = int(hashlib.md5(entity_type.encode()).hexdigest()[:6], 16)\n        color = f\"#{color_hash:06x}\"\n\n        net.add_node(\n            node_id,\n            label=node_id,\n            title=f\"[{entity_type}] {description[:200]}\"\n            if description\n            else entity_type,\n            color=color,\n        )\n\n    # Add edges\n    for edge in edges:\n        source = edge.get(\"source\", \"\")\n        target = edge.get(\"target\", \"\")\n        props = edge.get(\"properties\", {})\n        rel_type = edge.get(\"type\", \"\")\n        description = props.get(\"description\", \"\")\n\n        net.add_edge(\n            source,\n            target,\n            title=f\"[{rel_type}] {description[:200]}\" if description else rel_type,\n            label=rel_type,\n        )\n\n    net.save_graph(output_file)\n    print(f\"Graph saved to {output_file}\")\n    return output_file",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Project source file, pyvis",
      "display": "examples/graph_visual_with_opensearch.py",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Project full_name, pyvis",
      "display": "HKUDS/LightRAG",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Project stargazers_count, pyvis",
      "display": "40.7K",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Library name, diagrams",
      "display": "Diagrams",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Monthly downloads, diagrams",
      "display": "801.6K",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "License, diagrams",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Package release, diagrams",
      "display": "0.25.1",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Package release date, diagrams",
      "display": "Nov 2025",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Install, diagrams",
      "display": "pip install diagrams",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Quickstart, diagrams",
      "display": "from diagrams import Diagram\nfrom diagrams.aws.compute import EC2\nfrom diagrams.aws.database import RDS\nfrom diagrams.aws.network import ELB\n\nwith Diagram('Web Service', show=False):\n    ELB('lb') >> EC2('web') >> RDS('userdb')\n",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Official description, diagrams",
      "display": "Draws diagrams as code.",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Quickstart source file, diagrams",
      "display": "docs/getting-started/installation.md",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Repository stars, diagrams",
      "display": "42.8K",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Standalone HTML, diagrams",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Needs Graphviz to render, diagrams",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Model scope, diagrams",
      "display": "Generic Node/Edge/Diagram, with optional architecture icon subclasses",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Context and rendering, diagrams",
      "display": "Diagram context owns nodes; show=False prevents automatic viewer",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Python wrapper dependency, diagrams",
      "display": "Current distribution pins graphviz<0.21",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Project function, diagrams",
      "display": "def generate_basic_airflow_diagram():\n    image_file = (MY_DIR / MY_FILENAME).with_suffix(\".png\")\n\n    console.print(f\"[bright_blue]Generating architecture image {image_file}\")\n    with Diagram(\n        name=\"\",\n        show=False,\n        direction=\"LR\",\n        filename=MY_FILENAME,\n        outformat=\"png\",\n        graph_attr=graph_attr,\n        edge_attr=edge_attr,\n    ):\n        user = User(\"Airflow User\")\n\n        dag_bundle = Custom(\"Dag bundle\", MULTIPLE_FILES_IMAGE.as_posix())\n        user >> Edge(color=\"brown\", style=\"solid\", reverse=False, label=\"author\\n\\n\") >> dag_bundle\n\n        with Cluster(\"Parsing, Scheduling & Executing\"):\n            dag_processor = Python(\"Dag processor\")\n            scheduler = Python(\"Scheduler\")\n\n        metadata_db = Custom(\"Metadata DB\", DATABASE_IMAGE.as_posix())\n        scheduler >> Edge(color=\"red\", style=\"dotted\", reverse=True) >> metadata_db\n        dag_processor >> Edge(color=\"red\", style=\"dotted\", reverse=True) >> metadata_db\n\n        plugins_and_packages = Custom(\n            \"Plugin folder\\n& installed packages\", PACKAGES_IMAGE.as_posix(), color=\"transparent\"\n        )\n\n        user >> Edge(color=\"blue\", style=\"solid\", reverse=False, label=\"install\\n\\n\") >> plugins_and_packages\n\n        with Cluster(\"UI\"):\n            webserver = Python(\"API Server\")\n\n        webserver >> Edge(color=\"black\", style=\"solid\", reverse=True, label=\"operate\\n\\n\") >> user\n\n        metadata_db >> Edge(color=\"red\", style=\"dotted\", reverse=True) >> webserver\n\n        dag_bundle >> Edge(color=\"brown\", style=\"solid\", label=\"read\\n\\n\") >> dag_processor\n\n        plugins_and_packages >> Edge(color=\"blue\", style=\"solid\", label=\"install\\n\\n\") >> scheduler\n        plugins_and_packages >> Edge(color=\"blue\", style=\"solid\", label=\"install\\n\\n\") >> dag_processor\n        plugins_and_packages >> Edge(color=\"blue\", style=\"solid\", label=\"install\\n\\n\") >> webserver\n\n    console.print(f\"[green]Generating architecture image {image_file}\")",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Project source file, diagrams",
      "display": "airflow-core/docs/img/diagram_basic_airflow_architecture.py",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Project full_name, diagrams",
      "display": "apache/airflow",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Project stargazers_count, diagrams",
      "display": "47.5K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python graph visualization libraries pyvis graphviz pydot ipycytoscape examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
