add creation function for a chain graph
add pretty printed show instance