Function transpose

Source
pub fn transpose(g: &Graph) -> Result<Graph>