graph¶

Construction and visualisation of graphs for WSI prediction.

Functions

affinity_to_edge_index

Convert an affinity matrix (similarity matrix) to an edge index.

delaunay_adjacency

Create an adjacency matrix via Delaunay triangulation from a list of coordinates.

edge_index_to_triangles

Convert an edged index to triangle simplices (triplets of coordinate indices).

triangle_signed_area

Determine the signed area of a triangle.

Classes

SlideGraphConstructor

Construct a graph using the SlideGraph+ (Liu et al. 2021) method.