added helper show_labeled_graph and an example in test file