This is just a suggestion for a possible fix for the draw_graph function. The first thing it does is restrict edge_confidence to the indices where lines != -1 (that is, it restricts edge_confidence to the output layers corresponding to non-parent keypoints). I think this should work for all graphs - but maybe I've overlooked something. It at least works for the graph I described in issue #52. The second thing it does is check to see if the keypoints don't exist, in which case a line is not drawn.
This is just a suggestion for a possible fix for the draw_graph function. The first thing it does is restrict edge_confidence to the indices where lines != -1 (that is, it restricts edge_confidence to the output layers corresponding to non-parent keypoints). I think this should work for all graphs - but maybe I've overlooked something. It at least works for the graph I described in issue #52. The second thing it does is check to see if the keypoints don't exist, in which case a line is not drawn.