add_prism function

Add a prism of nodes to the graph