Algorithms
16 entries
- A* search
Algorithm
Shortest-path search guided by a heuristic estimate of remaining distance; with an admissible heuristic it finds optimal paths while expanding fewer nodes than Dijkstra.
- Betweenness centrality
Algorithm
Scores a node by the fraction of all shortest paths between other node pairs that pass through it, highlighting brokers and bottlenecks.
- Breadth-first search (BFS)
Algorithm
Explores a graph level by level from a source node, visiting all nodes at distance k before distance k+1; finds shortest paths in unweighted graphs.
- Depth-first search (DFS)
Algorithm
Explores as far as possible along each branch before backtracking; the basis for topological sorting, cycle detection and strongly connected components.
- Dijkstra's shortest path
Algorithm
Computes shortest paths from a source in graphs with non-negative edge weights by repeatedly settling the closest unsettled node.
- Graph Convolutional Network (GCN)
Algorithm
Neural network layer that updates each node from a degree-normalised average of its neighbours' features, trained end-to-end for semi-supervised node classification.
- GraphSAGE
Algorithm
Inductive graph neural network that learns functions to sample and aggregate neighbour features, so it can embed nodes unseen during training.
- Kruskal's minimum spanning tree
Algorithm
Builds a minimum-weight spanning tree by adding edges in increasing weight order whenever they join two different components.
- Label propagation
Algorithm
Near-linear community detection where each node repeatedly adopts the label most common among its neighbours until labels stabilise.
- Leiden community detection
Algorithm
Refinement of Louvain that guarantees well-connected communities and converges to better partitions; used for community summaries in Microsoft GraphRAG.
- Louvain community detection
Algorithm
Greedy, multi-level modularity optimisation that moves nodes between communities, then aggregates communities into super-nodes and repeats.
- node2vec
Algorithm
Learns node embeddings by running biased second-order random walks and training a skip-gram model on them, trading off local and global structure.
- PageRank
Algorithm
Scores nodes by the stationary probability that a random surfer — following links, occasionally teleporting — is on them. Originally used to rank web pages.
- Personalized PageRank
Algorithm
PageRank whose teleport step returns to a chosen set of seed nodes, scoring relevance to those seeds; used for recommendation, local clustering and biomedical prioritisation.
- Triangle counting
Algorithm
Counts triangles (3-cliques) per node or in total; the basis of clustering coefficients and a common fraud and spam signal.
- Weakly connected components
Algorithm
Finds groups of nodes connected when edge direction is ignored; often the first data-quality check on a new graph.