Convexity in real-world graphs



of real-world graphs.

Try to find real-world graphs with (almost) convex classes.

Suggested approach

Download some vertex-labelled graphs from and implement routines to read-in the data by using, for example, python and graph-tool (

Write functions that can compute specific properties of the graphs such as:

Do the values change when you ignore the orientation (i.e., directed/undirected) and edge weights (weighted/unweighted) of the graphs?

Can you find particular datasets and application areas (social networks, biological data, etc.) where the classes are (or at least tend to be) often convex?

Print (and visualise) the computed statistics in a consistent way for all the graphs and classes that you inspected.


Primary resource (book defining all needed concept):

For k-convexity:

Recent papers employing convexity aspects of graphs in machine learning:


While classical notions of convexity in Euclidean space are largely studied and used by the machine learning community, related notions in discrete spaces (e.g., graphs) have been mostly overlooked. Recently, we (and other groups) have started to use the notion of convexity in graphs to achieve guarantees for machine learning problems on graphs.

Currently, these results are mainly of theoretical interest, but the next step is to evaluate and test the developed methods on real-world graphs. For that, we have to find reasonable datasets and application areas that fit our convexity-based assumptions. Your goal is to identify graphs where the labelled subgraphs are (close to) convex.