RosettaCodeData/Task/Visualize-a-tree/Maple/visualize-a-tree.maple

3 lines
117 B
Plaintext

T := GraphTheory:-Graph([1, 2, 3, 4, 5], {{1, 2}, {2, 3}, {2, 4}, {4, 5}}):
GraphTheory:-DrawGraph(T, style = tree);