GraphAnalyzer

class GraphAnalyzer(bindingGraph: BindingGraph)(source)

Performs various graph analysis algorithms on a BindingGraph using Guava graphs.

Constructors

Link copied to clipboard
constructor(bindingGraph: BindingGraph)

Functions

Link copied to clipboard

Computes betweenness centrality for each node. Nodes with high centrality lie on many shortest paths between other nodes, making them important connectors in the graph.

Link copied to clipboard

Computes dominator relationships in the graph. A node X dominates node Y if every path from a root to Y must pass through X. Nodes that dominate many others are critical bottlenecks.

Link copied to clipboard

Computes fan-in (number of dependents) and fan-out (number of dependencies) for each binding. High fan-in indicates widely used bindings; high fan-out indicates bindings with many dependencies.

Link copied to clipboard

Computes shortest paths from all nodes to the graph root using Dijkstra's algorithm.

Link copied to clipboard

Compute basic statistics about the graph.

Link copied to clipboard