Skip to content

Interactive Examples

These examples are marimo notebooks you can run locally for an interactive experience. Each page shows the full code with expected output.

Run Locally

Install the dependencies, then launch any example:

uv add grafeo anywidget-graph anywidget-vector marimo numpy networkx matplotlib
marimo run examples/graph_visualization.py

Available Examples

  • Graph Visualization


    Build a social network, run PageRank and community detection, then visualize it interactively with anywidget-graph.

    View Example

  • Vector Search


    Store document embeddings, perform cosine similarity search and hybrid filtering, then explore the embedding space in 3D.

    View Example

  • Fraud Detection


    Model a transaction network, detect money laundering rings and mule accounts and score risk with PageRank.

    View Example

  • NetworkX Integration


    Convert Grafeo graphs to NetworkX, run centrality and clustering algorithms and visualize with matplotlib.

    View Example

  • Arrow Export


    Bulk export graph data to PyArrow, Polars and pandas. DuckDB integration, lazy evaluation, 10-100x faster at scale.

    View Example

  • DuckDB Integration


    Combine Grafeo graph storage with DuckDB analytical SQL queries via zero-copy Apache Arrow. JOIN nodes and edges, aggregate, and export to Parquet.

    View Example