Skip to content

Native graph engine: cyclic density (SCC) and articulation points in O(V+E) #3035

Closed

Description

@squid-protocol

Part of #3033.

Scope

Iterative Tarjan SCC on the directed index; iterative Hopcroft–Tarjan on the undirected view.

Acceptance criteria

  • Equal to networkx on the parity harness
  • No recursion (iterative only)
  • Replaces the nx calls

Relevant baseline

operation networkx notes
SCC 3.1 ms
articulation points 3.9 ms

Networkx conventions to match

  • nx.strongly_connected_components(G): return strongly connected components of a directed graph
  • nx.articulation_points(U): return articulation points of an undirected graph (with U = G.to_undirected())
  • Cyclic density = nodes in SCCs of size > 1, divided by V

Activity

  1. added
    enhancement
    metrics
    core-engine
    on Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    core-engineenhancementmetrics

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions