Testing whether a subgraph is convex or isometric | Synapse