Guide/Reference
Algorithm Catalog
6 min readFrom the README
FrankenNetworkX implements paths across 25+ algorithm families. The table below is a high-level inventory. The canonical, machine-checked surface list lives in docs/coverage.md (4,926 qualified NetworkX 3.6.1 FeatureUniverse rows, including explicit exclusions) and python/franken_networkx/backend.py (the 476 algorithms wired into the NetworkX dispatcher).
| Family | Selected Functions |
|---|---|
| Shortest path | shortest_path, all_shortest_paths, dijkstra_path, bellman_ford_path, multi_source_dijkstra, bidirectional_dijkstra, has_path, shortest_path_length, average_shortest_path_length, single_source_*, all_pairs_*, astar_path, astar_path_length, shortest_simple_paths, johnson, floyd_warshall*, find_negative_cycle |
| Connectivity | is_connected, connected_components, node_connectivity, edge_connectivity, minimum_node_cut, minimum_edge_cut, bridges, articulation_points, biconnected_components, strongly_connected_components, kosaraju_strongly_connected_components, condensation, weakly_connected_components, k_edge_components, k_edge_subgraphs, k_edge_augmentation, all_node_cuts, local_node_connectivity, local_edge_connectivity |
| Centrality | pagerank, betweenness_centrality, edge_betweenness_centrality, closeness_centrality, harmonic_centrality, eigenvector_centrality (+ _numpy), katz_centrality (+ _numpy), degree_centrality, hits, voterank, load_centrality, subgraph_centrality, information_centrality, second_order_centrality, group_betweenness_centrality, current_flow_betweenness, communicability, communicability_betweenness_centrality, communicability_exp |
| Clustering | clustering, triangles, transitivity, average_clustering, square_clustering, generalized_degree |
| Matching | max_weight_matching, min_weight_matching, maximal_matching, hopcroft_karp_matching, min_edge_cover, is_matching, is_maximal_matching, is_perfect_matching, is_edge_cover |
| Flow | maximum_flow, maximum_flow_value, minimum_cut, minimum_cut_value, min_cost_flow*, network_simplex, stoer_wagner, gomory_hu_tree, edmonds_karp |
| Trees & forests | minimum_spanning_tree, maximum_spanning_tree, partition_spanning_tree, random_spanning_tree, number_of_spanning_trees, is_tree, is_forest, is_arborescence, is_branching, maximum_branching, minimum_branching, greedy_branching, SpanningTreeIterator, ArborescenceIterator, tree_data, from_prufer_sequence, to_prufer_sequence |
| Euler | eulerian_circuit, eulerian_path, is_eulerian, has_eulerian_path, is_semieulerian, eulerize |
| Paths & cycles | all_simple_paths, all_simple_edge_paths, cycle_basis, simple_cycles, find_cycle, is_simple_path, has_cycle |
| Operators | complement, union, intersection, compose, difference, symmetric_difference, disjoint_union, cartesian_product, tensor_product, lexicographic_product, strong_product, power |
| Bipartite | is_bipartite, bipartite.sets, bipartite.color, bipartite.density, bipartite.biadjacency_matrix, bipartite.from_biadjacency_matrix, bipartite.projected_graph, bipartite.weighted_projected_graph |
| Coloring | greedy_color, strategy_* strategies under nx.coloring |
| Distance | diameter, radius, center, periphery, eccentricity, density, barycenter, resistance_distance |
| Efficiency | global_efficiency, local_efficiency, efficiency |
| Traversal | bfs_edges, bfs_tree, bfs_predecessors, bfs_successors, bfs_layers, descendants_at_distance, dfs_edges, dfs_tree, dfs_predecessors, dfs_successors, dfs_preorder_nodes, dfs_postorder_nodes, edge_bfs, edge_dfs, generic_bfs_edges |
| DAG | topological_sort, topological_generations, lexicographical_topological_sort, dag_longest_path, dag_longest_path_length, is_directed_acyclic_graph, ancestors, descendants, transitive_closure, transitive_reduction, immediate_dominators, dominance_frontiers, antichains, is_aperiodic, dag_to_branching |
| Link prediction | common_neighbors, jaccard_coefficient, adamic_adar_index, preferential_attachment, resource_allocation_index, cn_soundarajan_hopcroft, within_inter_cluster |
| Reciprocity | reciprocity, overall_reciprocity |
| Graph metrics | average_degree_connectivity, rich_club_coefficient, s_metric, wiener_index, hyper_wiener_index, degree_assortativity_coefficient, average_neighbor_degree, attribute_assortativity_coefficient, attribute_mixing_dict, attribute_mixing_matrix, degree_mixing_matrix, triadic_census, all_triads |
| Community | louvain_communities, greedy_modularity_communities, label_propagation_communities, asyn_fluidc, girvan_newman, k_clique_communities, kernighan_lin_bisection, community.modularity |
| Isomorphism | is_isomorphic, could_be_isomorphic, fast_could_be_isomorphic, faster_could_be_isomorphic, GraphMatcher, MultiGraphMatcher, VF2++, tree isomorphism, ISMAGS |
| Planarity | is_planar, check_planarity, check_planarity_recursive |
| Approximation | min_weighted_vertex_cover, maximum_independent_set, max_clique, clique_removal, large_clique_size, treewidth_min_degree, treewidth_min_fill_in, min_edge_dominating_set, traveling_salesman_problem, christofides, randomized_partitioning, one_exchange |
| Dominating | dominating_set, is_dominating_set, connected_dominating_set |
| Isolates | isolates, is_isolate, number_of_isolates |
| Boundary | edge_boundary, node_boundary |
| k-core / k-truss | core_number, k_core, k_shell, k_corona, k_crust, onion_layers, k_truss |
| Polynomial / spectral | tutte_polynomial, chromatic_polynomial, laplacian_spectrum, adjacency_spectrum, modularity_spectrum, fiedler_vector, algebraic_connectivity, simrank_similarity, google_matrix |
| Generators | path_graph, cycle_graph, star_graph, wheel_graph, complete_graph, complete_bipartite_graph, complete_multipartite_graph, empty_graph, petersen_graph, tutte_graph, random_geometric_graph, gnp_random_graph, gnm_random_graph, fast_gnp_random_graph, watts_strogatz_graph, barabasi_albert_graph, dual_barabasi_albert_graph, stochastic_block_model, random_regular_graph, random_tree (Prüfer), navigable_small_world_graph (Kleinberg), relaxed_caveman_graph, partial_duplication_graph, LFR_benchmark_graph, LCF_graph, lattices (grid, hexagonal, triangular, hypercube), social datasets (karate_club_graph, davis_southern_women_graph, florentine_families_graph) |
| I/O | read_edgelist / write_edgelist, read_weighted_edgelist / write_weighted_edgelist, read_adjlist / write_adjlist, read_multiline_adjlist / write_multiline_adjlist, read_graphml / write_graphml, read_gml / write_gml, read_pajek / write_pajek, read_leda, read_gexf / write_gexf, read_graph6 / write_graph6, read_sparse6 / write_sparse6, node_link_data / node_link_graph, cytoscape_data / cytoscape_graph, tree_data / tree_graph |
| NumPy / SciPy / pandas | to_numpy_array, from_numpy_array, to_scipy_sparse_array, from_scipy_sparse_array, to_pandas_edgelist, from_pandas_edgelist, to_pandas_adjacency, from_pandas_adjacency, attr_matrix, incidence_matrix, laplacian_matrix, adjacency_matrix |
| Conversion | from_dict_of_dicts, to_dict_of_dicts, from_dict_of_lists, to_dict_of_lists, from_edgelist, to_edgelist, convert_node_labels_to_integers, relabel_nodes, contracted_nodes, contracted_edge, identified_nodes, quotient_graph, line_graph, reverse |
| Drawing & layout | draw, draw_spring, draw_circular, draw_kamada_kawai, draw_planar, draw_random, draw_shell, draw_spectral, draw_bipartite, spring_layout, circular_layout, kamada_kawai_layout, planar_layout, random_layout, shell_layout, spectral_layout, bipartite_layout (delegates to NetworkX + matplotlib) |
The full surface list is in docs/coverage.md. To use a specific algorithm: from franken_networkx import <name>. Consult its FeatureUniverse status first: only present contributes to the strict portability fraction; every partial row states the exact signature, kind, or value gap.