Convexity in combinatorial structures